Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DEFINE w/HDATE causing agent to crash

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] DEFINE w/HDATE causing agent to crash
 Login/Join
 
Platinum Member
posted
What should not have worked did! FOCMAGIC?!
It was missing another set of parens around the function. This is code that from 5.2.5
Thanks for all of your help everyone.

MODCCD/YYMD = IF CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P'
THEN (HDATE(CLSD_D,'YYMD')) ELSE '19000101';
ClaimClosedDate/MDYY = IF CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P'
THEN (HDATE(CLSD_D,'MDYY')) ELSE '0' ;
-*****************************************
This is a DEFINE that we have in a Reporting Object. It causes an agent to crash.
Unknown error occurred. Agent on reporting server AIXSERVE may have crashed or request was halted by the operator. Please investigate reporting server log.
The first DEFINE runs w/out error. The second DEFINE crashes an agent ONLY when it is run in the Reporting Object. We are going against Oracle data via PeopleSoft on an AIX box. Outside of Reporting Object flawless.

DEFINE FILE CSICEDEDLOSSDATA
ClaimClosedDate/MDYY = IF CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P' THEN HDATE(CLSD_D,'MDYY') ELSE 0 ;
-*****
MODCCD/YYMD = IF CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P' THEN HDATE(CLSD_D,'YYMD') ELSE '19000101';
END

We have a ticket open with IBI but was wondering if anyone has experienced this odd behavior. Oh by the way, this is a migration of MRE from 7.1.6 to 7.7.03. Feel my pain... LOL

Rhonda

This message has been edited. Last edited by: Rhonda,


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML
 
Posts: 146 | Location: Atlanta, GA | Registered: May 31, 2007Report This Post
Expert
posted Hide Post
What format is CLSD_D ?
and what is the oracle column format ?


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
The data types of the DEFINE fields and some of the values you're attempting to assign to them don't seem to be compatible.

What would happen if you did this:

DEFINE FILE CSICEDEDLOSSDATA
ClaimClosedDate/MDYY MISSING ON = IF CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P' THEN HDATE(CLSD_D,'MDYY') ELSE MISSING ;
-*****
MODCCD/YYMD = IF CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P' THEN HDATE(CLSD_D,'YYMD') ELSE DATECVT('19000101','A8YYMD','YYMD');
END


That way your fields will always receive a valid DATE value, or MISSING when applicable.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Platinum Member
posted Hide Post
The format of CLSD_D is date/time
The following worked for us.
NOTE: The extra parens aroung the HDATE function. Crazy!

MODCCD/YYMD = IF (CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P')
THEN (HDATE(CLSD_D,'YYMD')) ELSE '19000101';
ClaimClosedDate/MDYY = IF CLAIMSTATUS EQ '2' OR '4' OR '6' OR '8' OR 'CCNP' OR 'CLSD' OR 'CLSD-P'
-* THEN HDATE(CLSD_D,'MDYY') ELSE '0' ;


WebFOCUS & ReportCaster 8.1.05, 7.7.03 - AIX/LINUX, FOCUS 7.6.13 MVS, Output PDF, XLS-XLSX, DOCX and HTML
 
Posts: 146 | Location: Atlanta, GA | Registered: May 31, 2007Report This Post
Expert
posted Hide Post
you've got quotes around the ELSE value on the MODCDD alternative.
'19000101'
That means its ALPHA.
that's never gunna work.
Take the quotes off, and it should work;
Better, do what New Jersey says.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
Virtuoso
posted Hide Post
Hmmm, what "date" value do you get when assigning '0' to ClaimClosedDate in you code?



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] DEFINE w/HDATE causing agent to crash

Copyright © 1996-2020 Information Builders