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.
We have a requirement in the report to display a concatenated stirng of PERSON_IDs(say P_ID). This I am generating in DEFINE. P_ID is based on ISSUE_ID(say I_ID) and AUTHER_ID(A_ID).
-* File lalita01.fex
TABLE FILE CAR
PRINT CAR SEATS
BY COUNTRY
ON TABLE HOLD
END
DEFINE FILE HOLD
C_STRING/A1000V = IF (COUNTRY NE LAST COUNTRY) THEN CAR || '@;'
ELSE IF (CAR NE LAST CAR) THEN LAST C_STRING | (CAR || '@;') ELSE LAST C_STRING;
END
TABLE FILE HOLD
PRINT CAR COUNTRY SEATS C_STRING
END
Daniel In Focus since 1982 wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006
Using LAST within a define requires that the input file is in the exact sort order that your code logic requires. If this is not the case then you would be better served doing the new field via a COMPUTE within you code.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Using LAST within a define requires that the input file is in the exact sort order that your code logic requires. If this is not the case then you would be better served doing the new field via a COMPUTE within you code.
Very true indeed! Lalita, just keep in mind that, if you use the COMPUTE approach, you'll be using a PRINT verb and *not* a SUM, otherwise it won't work as you might expect.