RSTOBJ (Restore Object) syntax diagram
Job: B,I Pgm: B,I REXX: B,I Exec Threadsafe: No >>-RSTOBJ--OBJ(--+-*ALL------------------------------+--)-------> | .-------------------------------. | | V (1) | | '---+-generic*-object-name-+------+-' '-object-name----------' >--SAVLIB(--library-name--)-------------------------------------> >--DEV(--+-*SAVF--------------------------+--)------------------> +-*MEDDFN------------------------+ +-diskette-device-name-----------+ +-optical-device-name------------+ +-tape-media-library-device-name-+ | .-----------------------. | | V (2) | | '---tape-device-name------+------' >--+---------------------------------------+--------------------> | .-*ALL------------. | | | .-------------. | | | (3) | V | | | '-OBJTYPE(-------+---object-type-+-+--)-' >--+-----------------------------------------+------------------> | (4) | | .-*MOUNTED-------------------. | '-VOL(--+-*SAVVOL--------------------+--)-' | .------------------------. | | V (5) | | '---volume-identifier------+-' (8) >--+------------------------------------------+-----------------> | (6) (7) .-*SEARCH---------. | '-SEQNBR(-----------+-sequence-number-+--)-' >--+------------------------------------------+-----------------> | (9) .-*SAVLIB--------------. | '-LABEL(-------+-data-file-identifier-+--)-' >--+-------------------------+----------------------------------> | .-*REWIND-. | '-ENDOPT(--+-*LEAVE--+--)-' '-*UNLOAD-' >--+---------------------------------------------+--------------> | .-*LIBL/--------. | '-SAVF(--+---------------+--save-file-name--)-' +-*CURLIB/------+ '-library-name/-' >--+------------------------------------------------------------+--> | (10) .-*LIBL/--------. | '-MEDDFN(--------+---------------+--media-definition-name--)-' +-*CURLIB/------+ '-library-name/-' >--+----------------------------+-------------------------------> | .-*ALL-------. | | | (11) | | '-OPTION(--+-*NEW-------+--)-' +-*OLD-------+ '-*FREE------' >--+---------------------------------------------------------------------------------------------------------+--> | .----------------------------------------------------------------------------------. | | (12) V .-*ALL---------------. .-*ALL-------------------------------------. (13) | | '-FILEMBR(----------(--+-database-file-name-+--+-*NONE------------------------------------+--)-------+--)-' | .--------------------------. | | V | (13) | '-(----+-generic*-member-name-+-+--------)-' '-member-name----------' >--+------------------------+-----------------------------------> | .-*MATCH-. | '-MBROPT(--+-*ALL---+--)-' +-*NEW---+ '-*OLD---' >--+------------------------------------+-----------------------> | (14) | '-SAVDATE(--------date-when-saved--)-' >--+------------------------------------+-----------------------> | (14) | '-SAVTIME(--------time-when-saved--)-' >--+-------------------------------+----------------------------> | .-*NONE------. | | | (15) | | '-ALWOBJDIF(--+-*ALL-------+--)-' '-*FILELVL---' >--+-----------------------------------+------------------------> | .-*SYSVAL--------. | '-FRCOBJCVN(--+-*NO------------+--)-' | .-*RQD-. | '-*YES--+-*ALL-+-' >--+------------------------------+-----------------------------> | .-*SAVLIB------. | '-RSTLIB(--+-library-name-+--)-' >--+-------------------------------------------------------------+--> | (16) .-*SAVASPDEV-------------------------. | '-RSTASPDEV(--------+-auxiliary-storage-pool-device-name-+--)-' >--+-----------------------------------------------------+------> | (16) .-*SAVASP-----------------------. | '-RSTASP(--------+-auxiliary-storage-pool-number-+--)-' >--+--------------------------+---------------------------------> | .-*NONE----. | '-OUTPUT(--+-*PRINT---+--)-' '-*OUTFILE-' >--+----------------------------------------------------------+--> | (17) .-*LIBL/--------. | '-OUTFILE(--------+---------------+--database-file-name--)-' +-*CURLIB/------+ '-library-name/-' >--+-------------------------------------------------+----------> | (17) .-*FIRST------. .-*REPLACE-. | '-OUTMBR(--------+-member-name-+--+-*ADD-----+--)-' >--+-----------------------------+------------------------------> | (17) .-*OBJ-. | '-INFTYPE(--------+-*MBR-+--)-' >--+--------------------------------------------------+-------->< | .-'*'-----------------------------. | '-OPTFILE(--+-'optical-directory-path-name/*'-+--)-' '-'optical-file-path-name'--------'
Notes:
- A maximum of 300 repetitions.
- A maximum of 4 repetitions.
- A list of the valid OS/400 object types for this command is in Expanded Parameter Descriptions.
- This value cannot be specified when using an optical media library device.
- A maximum of 75 repetitions.
- If VOL(*SAVVOL) is specified, only SEQNBR(*SEARCH) can be specified on this parameter.
- Applies to tape devices only.
- All parameters preceding this point can be specified positionally.
- If VOL(*SAVVOL) is specified, only LABEL(*SAVLIB) can be specified on this parameter.
- The MEDDFN parameter is required when DEV(*MEDDFN) is specified.
- If VOL(*SAVVOL) and RSTLIB(*SAVLIB) are specified, OPTION(*NEW) cannot be specified.
- If the FILEMBR parameter or ALWOBJDIF(*ALL) is specified, MBROPT(*MATCH) cannot be specified.
- A maximum of 50 repetitions.
- If VOL(*SAVVOL) is specified, SAVDATE and SAVTIME cannot be specified.
- If the FILEMBR parameter or ALWOBJDIF(*ALL) is specified, MBROPT(*MATCH) cannot be specified.
- You can specify either the RSTASPDEV or RSTASP parameter, but not both.
- This parameter is valid only if OUTPUT(*OUTFILE) is specified.