When saving objects from the QSYS.LIB file system
This information lists restrictions that apply when you use the SAV command to save objects from the QSYS.LIB (library) file system.
- The OBJ parameter must have only one name.
- The OBJ parameter must match the way that you can specify objects
on the SAVLIB command and the SAVOBJ command:
- You can save a library:
OBJ('/QSYS.LIB/library-name.LIB')
- You can save all the objects in a library:
OBJ('/QSYS.LIB/library-name.LIB/*')
- You can save all objects of a particular type in a library:
OBJ('/QSYS.LIB/library-name.LIB/*.object-type')
- You can save a specific object name and object type in a library:
OBJ('/QSYS.LIB/library-name.LIB/object-name.object-type')
- You can save all the members in a file by using either of the
following:
OBJ('/QSYS.LIB/library-name.LIB/file-name.FILE/*')
OBJ('/QSYS.LIB/library-name.LIB/file-name.FILE/*.MBR')
- You can save a specific member in a file:
OBJ('/QSYS.LIB/library-name.LIB/ file-name.FILE/member-name.MBR')
- You can save a library:
- You can specify only the object types that the SAVOBJ command allows. For example, you cannot use the SAV command to save user profiles, because the SAVOBJ command does not allow OBJTYPE(*USRPRF).
- You cannot save some libraries in the QSYS.LIB file system with
the SAVLIB command because of the type of information that they contain.
Following are examples:
- The QDOC library, because it contains documents
- The QSYS library, because it contains system objects.
Libraries that you cannot save using the SAV command QDOC QRECOVERY QSPL QDOCxxxx1 QRCYxxxxx2 QSPLxxxx3 QPTFOBJ1 QRPLOBJ QSYS QPTFOBJ2 QRPLxxxxx2 QSYSxxxxx2 QSRV QTEMP - 1
- Where xxxx is a value from 0002 to 0032, corresponding to an ASP.
- 2
- Where xxxxx is a value from 00033 to 00255, corresponding to an independent ASP.
- 3
- Where xxxxx is a value from 0002 to 0255, corresponding to an ASP.
- Other parameters must have these values:
- SUBTREE
- *ALL
- SYSTEM
- *LCL
- OUTPUT
- *NONE
- CHGPERIOD
-
- Start date cannot be *LASTSAVE
- End date must be *ALL
- End time must be *ALL
- Default, if you specify a file member