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  iWay Software Product Forum on Focal Point    Storing results of HOLD FILES in variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Storing results of HOLD FILES in variables
 Login/Join
 
Member
posted
I have a requirement wherein I need to store the values of a column in HOLDFILE in a variable as comma separated.

Let us suppose I have a holdfile HOLDVAL.
TABLE FILE HOLDVAL
PRINT VAL
END

If the result of the above query has rows such as
ONE
TWO
THREE.
I want them in the format ONE,TWO,THREE stored in a variable.


WebFOCUS 7.6.4
Windows
Excel, HTML, PDF
 
Posts: 1 | Registered: August 20, 2009Report This Post
Platinum Member
posted Hide Post
Hi

Here is some sample code.

Jodye

 
-SET &ECHO=ALL;
TABLE FILE CAR
PRINT DST.COUNTRY
ON TABLE HOLD AS CNTRIES FORMAT ALPHA
END


-RUN
-SET &MYVAR='';
-DOREAD
-READ CNTRIES &X.A10.
-IF &IORETURN NE 0 GOTO LSTREAD;
-TYPE X=&X
-SET &MYVAR=IF &MYVAR EQ '' THEN &X ELSE &MYVAR || ',' || &X;

-GOTO DOREAD;
-LSTREAD
-TYPE MYVAR=&MYVAR
-EXIT
 


WF 8.0.0.5M
 
Posts: 246 | Location: Montreal, QC, Canada | Registered: October 01, 2003Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    Storing results of HOLD FILES in variables

Copyright © 1996-2020 Information Builders