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.
TABLE FILE CAR
PRINT
COMPUTE SEQ/I4=SEQ+1; NOPRINT
COMPUTE COMMA/A1=IF SEQ EQ 1 THEN ' ' ELSE ',';
CAR
BY CAR NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD AS CARLIST FORMAT ALPHA
END
and then select... where widget in ( -INCLUDE CARLIST )
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
-* -** This creates a file of 5 EMP_ID's using the CAR file (holds as SQLOUT) -* DEFINE FILE CAR CNTR/I5 WITH CAR = CNTR + 1; EMP_ID/A3 = DECODE CNTR (1 '101' 2 '102' 3 '103' 4 '104' 5 '105'); END -* TABLE FILE CAR PRINT EMP_ID WHERE RECORDLIMIT EQ 5 ON TABLE HOLD AS SQLOUT FORMAT ALPHA END -* -** This creates one record of all EMD_ID's seperated by commas (holds as EMP_VAL) -** NOTE: works for up to 100 EMP_ID's(If you need more - change the EMP_LIT define statement) -* DEFINE FILE SQLOUT EMP_LIT/A399 = IF EMP_LIT EQ ' ' THEN EMP_ID ELSE SUBSTR(399, EMP_LIT, 1, 395, 395, 'A395') || (',' | EMP_ID); END -* TABLE FILE SQLOUT SUM EMP_LIT ON TABLE HOLD AS EMP_VAL FORMAT ALPHA END -RUN -* -** This reads the EMP_VAL hold file(one record) into the EMPID variable -* -READ EMP_VAL &EMPID.A399 -* -** This displays the EMPID variable -* -TYPE ***************************************************************** -TYPE EMPID --- &EMPID -TYPE ***************************************************************** -EXIT
Hope this helps.
Jim
WebFocus 8.201M, Windows, App Studio
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008