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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.