Focal Point
I have hold file and i need to assign it to webfocus variable

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1271093202

December 20, 2006, 07:48 AM
naveen rao
I have hold file and i need to assign it to webfocus variable
I have a hold file and i need to assign it to webfocus variables.
December 20, 2006, 09:41 AM
Prarie
Naveen,

Please modify your profile and add what platform you are on in the Signature spot.
Can you also give us a little more detail on what you are trying to do here.


In Focus since 1993. WebFOCUS 7.7.03 Win 2003
Why not declare the variable first and hold it AS that name?

-SET &HOLDFILE = 'CARHOLD';

TABLE FILE CAR
PRINT COUNTRY
ON TABLE HOLD AS &HOLDFILE
END


PROD:WebFOCUS 7.6.11 on UNIX accessing FOCUS, Oracle, SQLServer
TEST: WebFOCUS 7.7.1 on UNIX accessing FOCUS, Oracle, SQLServer
Naveen :
If you are talking about assigning Hold file data to amper variables, please look up this previous post - https://forums.informationbuilders.com/eve/forums/a/tpc/...1057331/m/4351077991 .

If you have multiple rows in the hold file, you can put the -READ in a -REPEAT loop like this .
-*
-*
-REPEAT LOOP99 WHILE &IORETURN EQ 0;
-SET &ICNT = &ICNT + 1 ;
-SET &FLD1.&ICNT = &F1X ;
-SET &FLD2.&ICNT = &F2X ;
-SET &FLD3.&ICNT = &F3X ;
-READ HSAVE &......
-LOOP99
-*
And please update your signature, so its easy to answer such Qs.

Hope that helps,
Sandeep Mamidenna


-------------------------------------------------------------------------------------------------
Blue Cross & Blue Shield of MS
WF.76-10 on (WS2003 + WebSphere) / EDA on z/OS + DB2 + MS-SQL
MRE, BID, Dev. Studio, Self-Service apps & a dash of fun !! Music