In Release 2 of OS/400 IBM added a new feature to the S36EE to allow changing the file libraries when running S36 functions. By using the FLIB procedure you can switch libraries. Before release 2 the S36 file library could only be changed by using the CHG36 command requiring a dedicated S36EE system. The FLIB procedure could be entered on the command line or you could use the // FLIB OCL statement to change the library in the procedure. For example if you want a CATALOG listing of the files in QGPL you do the following:
STRS36 FLIB QGPL CATALOG ALL,F1
This can be handy when testing S36 applications. Your test data can by in a test library and you can issue the FLIB command before you start testing. The new file library will be in effect until it is changes again or until you sign off.
Alon Fluxman Highlands Ranch, Colorado