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 email@example.com for further assistance. Reference the community FAQ to learn more about the community.
DEFINE FILE CAR
CAR1/I11= IF CAR_ID NE '' THEN 1 ELSE 0;
CAR2/I11= IF INF_ID EQ '' THEN 1 ELSE 0;
CTRY/I11= IF LEG_ID EQ '' THEN 1 ELSE 0;
E_IT/I11= IF MAT_ID NE '' THEN 1 ELSE 0;
OPEN_DATE/YYM = HDATE(OPEN_DATE, 'YYMD');
REOPEN_DATE/YYM= HDATE(REOPEN_DATE, 'YYMD');
CLOSE_DATE/YYM= HDATE(CLOSE_DATE, 'YYMD');
OP_C/I11= IF OPEN_DATE LT 200010 THEN 1 ELSE 0;
NEW_C/I11= IF OPEN_DATE GE 200010 THEN 1 ELSE 0;
I was in need of the below o/p from the above DEFINE..
Since OP_C and NEW_C are mutually exclusive from the way you coded them, you only need one field to identify the value which will be 0 or 1. Then you can use a DECODE to give them a name. Please reference the following example:
DEFINE FILE CAR
SORT1/I1=IF COUNTRY EQ 'ENGLAND' THEN 0 ELSE IF COUNTRY EQ 'JAPAN' THEN 1 ELSE 2;
SORTFLD/A10=DECODE SORT1(0 'NEW_C' 1 'OP_C');
TABLE FILE CAR
SUM DEALER_COST RETAIL_COST
BY SORT1 NOPRINT
BY SORTFLD AS ''
ON TABLE ROW-TOTAL
WHERE SORT1 LT 2
Also, please, please put your code in between the code tags (the red left and right carats to the far right of the ribbon bar) so that it lines up properly.