Option 1: export an entire library


LIB=(library name)
PSWD=(read password/write password);

Required keyword
Required keyword


The library specified by the DDNAME defined in the LIB keyword field will be copied to the file defined by the DDNAME specified in the TO keyword field. The output dataset specified in the TO keyword should be defined as a sequential dataset (DSORG=PS) containing fixed-length records that are 512 bytes in length. The command also lists the number of tables exported. If any tables are password protected, the PSWD keyword with the appropriate password must be used. The PSWD keyword with the master password will allow all password protected tables to be exported.

If multiple libraries are to be exported, a different TO=(DDNAME) must be used for each library.