Page History
...
- Define fields A, B and C in the Repository (if not already defined).
- Define file WRKFILE as a normal LANSA database file in the default data library of the current partition. Then make it operational.
Note that this version of the file will never actually contain any data. - When you want to use WRKFILE in an RDML program, code the following starting lines into the program:
CHANGE FIELD(#LIB) TO(*PARTDTALIB)
EXEC_OS400 COMMAND('CRTDUPOBJ OBJ(WRKFILE) FROMLIB(#LIB) +
TOLIB(QTEMP)')
POINT FILE(WRKFILE) TO_LIBRARY(QTEMP)
This code will cause a duplicate version of file WRKFILE to be created in library QTEMP (your job's temporary library), and will then "point" all I/O commands involving file WRKFILE to the version of the file in QTEMP.
The best features of using work files in special library QTEMP are:
...