RSTLIB (Restore Library) syntax diagram
Job: B,I Pgm: B,I REXX: B,I Exec Threadsafe: No >>-RSTLIB--SAVLIB(--+-*NONSYS------+--)-------------------------> +-*ALLUSR------+ +-*IBM---------+ '-library-name-' >--DEV(--+-*SAVF--------------------------+--)------------------> +-*MEDDFN------------------------+ +-diskette-device-name-----------+ +-optical-device-name------------+ +-tape-media-library-device-name-+ | .-----------------------. | | V (1) | | '---tape-device-name------+------' >--+-----------------------------------------+------------------> | (2) | | .-*MOUNTED-------------------. | '-VOL(--+-*SAVVOL--------------------+--)-' | .------------------------. | | V (3) | | '---volume-identifier------+-' (5) >--+-------------------------------------------+----------------> | (4) .-*SEARCH--------------. | '-SEQNBR(-------+-file-sequence-number-+--)-' >--+-------------------------------------+----------------------> | .-*SAVLIB--------------. | '-LABEL(--+-data-file-identifier-+--)-' >--+-------------------------+----------------------------------> | .-*REWIND-. | '-ENDOPT(--+-*LEAVE--+--)-' '-*UNLOAD-' >--+-----------------------------------+------------------------> | (6) .-*FIRST-------. | '-STRLIB(-------+-library-name-+--)-' >--+---------------------------------------------+--------------> | .-*NONE-----------------. | | | .-------------------. | | | (6) | V (7) | | | '-OMITLIB(-------+---library-name------+-+--)-' >--+---------------------------------------------+--------------> | .-*LIBL/--------. | '-SAVF(--+---------------+--save-file-name--)-' +-*CURLIB/------+ '-library-name/-' >--+-----------------------------------------------------------+--> | (8) .-*LIBL/--------. | '-MEDDFN(-------+---------------+--media-definition-name--)-' +-*CURLIB/------+ '-library-name/-' >--+-----------------------+--+------------------------+--------> | .-*ALL--. | | .-*MATCH-. | '-OPTION(--+-*NEW--+--)-' '-MBROPT(--+-*ALL---+--)-' +-*OLD--+ +-*NEW---+ '-*FREE-' '-*OLD---' >--+------------------------------+-----------------------------> '-SAVDATE(--date-when-saved--)-' >--+------------------------------+-----------------------------> '-SAVTIME(--time-when-saved--)-' >--+------------------------------+-----------------------------> | .-*NONE-----. | | | (9) | | '-ALWOBJDIF(--+-*ALL------+--)-' '-*FILELVL--' >--+-----------------------------------+------------------------> | .-*SYSVAL--------. | '-FRCOBJCVN(--+-*NO------------+--)-' | .-*RQD-. | '-*YES--+-*ALL-+-' >--+------------------------------------+-----------------------> | .-*SAVLIB------------. | | | (10) | | '-RSTLIB(--+-library-name-------+--)-' >--+-------------------------------------------------------------+--> | (11) .-*SAVASPDEV-------------------------. | '-RSTASPDEV(--------+-auxiliary-storage-pool-device-name-+--)-' >--+-----------------------------------------------------+------> | (11) .-*SAVASP-----------------------. | '-RSTASP(--------+-auxiliary-storage-pool-number-+--)-' >--+--------------------------+---------------------------------> | .-*NONE----. | '-OUTPUT(--+-*PRINT---+--)-' '-*OUTFILE-' >--+----------------------------------------------------------+--> | (12) .-*LIBL/--------. | '-OUTFILE(--------+---------------+--database-file-name--)-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------------------------------+----------> | (12) .-*FIRST------. .-*REPLACE-. | '-OUTMBR(--------+-member-name-+--+-*ADD-----+--)-' >--+-----------------------------+------------------------------> | (12) .-*OBJ-. | '-INFTYPE(--------+-*MBR-+--)-' >--+--------------------------------------------------+-------->< | .-'*'-----------------------------. | '-OPTFILE(--+-'optical-directory-path-name/*'-+--)-' '-'optical-file-path-name'--------'
Notes:
- A maximum of 4 repetitions.
- This value cannot be specified when using an optical media library device.
- A maximum of 75 repetitions.
- Applies to tape devices only.
- All parameters preceding this point can be specified positionally.
- Valid only if SAVLIB(*NONSYS), SAVLIB(*ALLUSR), or SAVLIB(*IBM) is specified.
- A maximum of 300 repetitions.
- The MEDDFN parameter is required when DEV(*MEDDFN) is specified.
- When using ALWOBJDIF(*ALL), the MBROPT(*MATCH) parameter cannot be specified.
- If an SQL database is restored to a library other than the one in which it was saved, the journals are not restored.
- You can specify either the RSTASPDEV or RSTASP parameter, but not both.
- This parameter is valid only if OUTPUT(*OUTFILE) is specified.