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:

  1. A maximum of 300 repetitions.

  2. A maximum of 4 repetitions.

  3. A list of the valid OS/400 object types for this command is in Expanded Parameter Descriptions.

  4. This value cannot be specified when using an optical media library device.

  5. A maximum of 75 repetitions.

  6. If VOL(*SAVVOL) is specified, only SEQNBR(*SEARCH) can be specified on this parameter.

  7. Applies to tape devices only.

  8. All parameters preceding this point can be specified positionally.

  9. If VOL(*SAVVOL) is specified, only LABEL(*SAVLIB) can be specified on this parameter.

  10. The MEDDFN parameter is required when DEV(*MEDDFN) is specified.

  11. If VOL(*SAVVOL) and RSTLIB(*SAVLIB) are specified, OPTION(*NEW) cannot be specified.

  12. If the FILEMBR parameter or ALWOBJDIF(*ALL) is specified, MBROPT(*MATCH) cannot be specified.

  13. A maximum of 50 repetitions.

  14. If VOL(*SAVVOL) is specified, SAVDATE and SAVTIME cannot be specified.

  15. If the FILEMBR parameter or ALWOBJDIF(*ALL) is specified, MBROPT(*MATCH) cannot be specified.

  16. You can specify either the RSTASPDEV or RSTASP parameter, but not both.

  17. This parameter is valid only if OUTPUT(*OUTFILE) is specified.