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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
build a &variable
 Login/Join
 
Master
posted
I am reading values from a hold file.

TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD FORMAT ALPHA
END
-RUN
-*
-SET &LIMIT=&LINES;
-SET &I=1;
-*
-REPEAT ENDLOOP &LIMIT TIMES
-READ HOLD NOCLOSE &COUNTRY.10.
-SET &COUNTRY.&I=&COUNTRY;
-*
-TYPE &COUNTRY.&I
-*
-SET &I=&I+1;
-*
-ENDLOOP

I am trying to brush off the rust, and I'd like a little help...

How do I build a variable to hold each of the values from the -read loop to use elsewhere (maybe a where statement).

Any ideas?

Thanks very much! Big Grin


Tomsweb
WebFOCUS 8.1.05M, 8.2.x
APP Studio, Developer Studio, InfoAssist, Dashboards, charts & reports
Apache Tomcat/8.0.36
 
Posts: 573 | Location: Baltimore, MD | Registered: July 06, 2006Report This Post
Expert
posted Hide Post
tom..you don't look rusty to me...looks like you did just what you wanted to do.

do you want a single WHERE ?
if that's it, then
DEFINE FILE CAR
COUNTRY2/A12='''' | COUNTRY | '''';
END
TABLE FILE CAR PRINT COUNTRY2 ON TABLE HOLD FORMAT ALPHA
END
-*
TABLE FILE somethingelse
WHERE COUNTRY IN FILE HOLD
or this used to work
WHERE COUNTRY IS (HOLD)

Here's a tech link..




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
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders