Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

help hold file

Status
Not open for further replies.

breyt

IS-IT--Management
Dec 9, 2002
66
FR
Hi
I am running webfocus under MVS and DB2 and windows NT.
How I can reuse an hold file create In an other session.
thanks
Breyt
 
You can save a hold-file by allocating it to a permanent place on disk. If you're running Webfocus on a NT-platform you should allocate the holdfile by using a filedef-command to a permenant directory before you use the table request that will write to it.
e.g.
Code:
FILEDEF FILE1 DISK C:\SHAREDIR\FILE1.FTM
TABLE FILE CAR
  PRINT *
  ON TABLE HOLD AS FILE1
END
-RUN
However:
Maybe you do not want to write to a flat file so other users can use them. Better is to write to a focus-file or a sql-file because there is no garantee that nobody else is writing to the same file at the same time.
The result of writing to a flat file may be unpredictable. Frank van de Kant
 
You can save a hold-file by allocating it to a permanent place on disk. If you're running Webfocus on a NT-platform you should allocate the holdfile by using a filedef-command to a permenant directory before you use the table request that will write to it.
e.g.

FILEDEF FILE1 DISK C:\SHAREDIR\FILE1.FTM
TABLE FILE CAR
PRINT *
ON TABLE HOLD AS FILE1
END
-RUN

However:
Maybe you do not want to write to a flat file so other users can use them. Better is to write to a focus-file or a sql-file because there is no garantee that nobody else is writing to the same file at the same time.
The result of writing to a flat file may be unpredictable.
Frank van de Kant
_______________________________________________________
How I can use the hold file after in an other session ? I want only run a focexec on this hold file witout retuning to the mainframe ,
thanks
breyt
 
How I can use the hold file after in an other session ? I want only run a focexec on this hold file without retuning to the mainframe ,
thanks
breyt

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top