SAVOBJ (Save Object) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: No
>>-SAVOBJ------------------------------------------------------->
 
        (1)
>--OBJ(-------+-*ALL------------------------------+--)---------->
              | .-------------------------------. |
              | V                          (2)  | |
              '---+-generic*-object-name-+------+-'
                  '-object-name----------'
 
              .--------------------------------.
        (3)   V                           (2)  |
>--LIB(---------+-generic*-library-name-+------+--)------------->
                '-library-name----------'
 
>--DEV(--+-*SAVF--------------------------+--)------------------>
         +-*MEDDFN------------------------+
         +-diskette-device-name-----------+
         +-optical-device-name------------+
         +-tape-media-library-device-name-+
         | .-----------------------.      |
         | V                  (4)  |      |
         '---tape-device-name------+------'
 
>--+---------------------------------------+-------------------->
   |           .-*ALL-----------------.    |
   |           | .------------------. |    |
   |           | V             (5)  | |    |
   '-OBJTYPE(--+---object-type------+-+--)-'
 
                                               (8)
>--+-----------------------------------------+------------------>
   |                  (6)                    |
   |       .-*MOUNTED-------------------.    |
   |       | .------------------------. |    |
   |       | V                   (7)  | |    |
   '-VOL(--+---volume-identifier------+-+--)-'
 
>--+--------------------------------------+--------------------->
   |         (9)   .-*END------------.    |
   '-SEQNBR(-------+-sequence-number-+--)-'
 
>--+-------------------------------------+---------------------->
   |         .-*LIB-----------------.    |
   '-LABEL(--+-data-file-identifier-+--)-'
 
>--+----------------------------------+------------------------->
   |           .-*PERM-----------.    |
   '-EXPDATE(--+-expiration-date-+--)-'
 
>--+-------------------------+---------------------------------->
   |          .-*REWIND-.    |
   '-ENDOPT(--+-*LEAVE--+--)-'
              '-*UNLOAD-'
 
>--+---------------------------------------------------+-------->
   |       (10)   .-*LIBL/--------.                    |
   '-SAVF(--------+---------------+--save-file-name--)-'
                  +-*CURLIB/------+
                  '-library-name/-'
 
>--+------------------------------------------------------------+-->
   |         (11)   .-*LIBL/--------.                           |
   '-MEDDFN(--------+---------------+--media-definition-name--)-'
                    +-*CURLIB/------+
                    '-library-name/-'
 
>--+----------------------+------------------------------------->
   |          .-*YES-.    |
   '-UPDHST(--+-*NO--+--)-'
 
>--+-----------------------------------------------------+------>
   |           .-*NONE------------------------------.    |
   |           | .---------------------------.      |    |
   |           | V                           | (2)  |    |
   '-OMITLIB(--+---+-library-name----------+-+------+--)-'
                   '-generic*-library-name-'
 
>--+--------------------------------+--------------------------->
   |          .-*CURRENT-------.    |
   '-TGTRLS(--+-*PRV-----------+--)-'
              '-target-release-'
 
>--+-------------------------+---------------------------------->
   |             .-*YES-.    |
   '-USEOPTBLK(--+-*NO--+--)-'
 
>--+-----------------------------+--+----------------------+---->
   |         .-*NONE--------.    |  |          .-*NO--.    |
   '-CLEAR(--+-*ALL---------+--)-'  '-PRECHK(--+-*YES-+--)-'
             |        (12)  |
             +-*AFTER-------+
             '-*REPLACE-----'
 
>--+--------------------------+--------------------------------->
   |          .-*NO------.    |
   '-SAVACT(--+-*LIB-----+--)-'
              +-*SYNCLIB-+
              '-*SYSDFN--'
 
>--+-------------------------------------+---------------------->
   |             (13)   .-120-------.    |
   '-SAVACTWAIT(--------+-*NOMAX----+--)-'
                        '-wait-time-'
 
>--+-----------------------------------------------------------------+-->
   |                    .-*NONE---------------------------------.    |
   |             (13)   |         (14)                          |    |
   '-SAVACTMSGQ(--------+-*WRKSTN-------------------------------+--)-'
                        | .-*LIBL/--------.                     |
                        '-+---------------+--message-queue-name-'
                          +-*CURLIB/------+
                          '-library-name/-'
 
>--+---------------------------------------------------------------------------------------------------+-->
   |           .----------------------------------------------------------------------------------.    |
   |           V    .-*ALL---------------.  .-*ALL-------------------------------------.    (15)  |    |
   '-FILEMBR(----(--+-database-file-name-+--+------------------------------------------+--)-------+--)-'
                                            +-*NONE------------------------------------+
                                            |    .--------------------------.          |
                                            |    V                          | (15)     |
                                            '-(----+-generic*-member-name-+-+--------)-'
                                                   '-member-name----------'
 
>--+----------------------+--+-----------------------+---------->
   |          .-*NO--.    |  |           .-*YES-.    |
   '-ACCPTH(--+-*YES-+--)-'  '-SAVFDTA(--+-*NO--+--)-'
 
>--+--------------------+--+----------------------+------------->
   |       .-*KEEP-.    |  |          .-*DEV-.    |
   '-STG(--+-*FREE-+--)-'  '-DTACPR(--+-*NO--+--)-'
                                      '-*YES-'
 
>--+-----------------------+------------------------------------>
   |           .-*DEV-.    |
   '-COMPACT(--+-*NO--+--)-'
 
>--+----------------------------------------------------+------->
   |          .-*----------------------------------.    |
   '-ASPDEV(--+-*SYSBAS----------------------------+--)-'
              +-*CURASPGRP-------------------------+
              '-auxiliary-storage-pool-device-name-'
 
>--+--------------------------+--------------------------------->
   |          .-*NONE----.    |
   '-OUTPUT(--+-*PRINT---+--)-'
              '-*OUTFILE-'
 
>--+-------------------------------------------------------------------------------------------------------+-->
   |           .-*NONE--------------------------------------------------------------------------------.    |
   |           | .----------------------------------------------------------------------------------. |    |
   |           | V    .-*ALL/------------------.                            .-*ALL--------.    (2)  | |    |
   '-OMITOBJ(--+---(--+------------------------+--+-*ALL-----------------+--+-object-type-+--)------+-+--)-'
                      +-generic*-library-name/-+  +-generic*-object-name-+
                      '-library-name/----------'  '-object-name----------'
 
>--+----------------------------------------------------------+-->
   |          (16)   .-*LIBL/--------.                        |
   '-OUTFILE(--------+---------------+--database-file-name--)-'
                     +-*CURLIB/------+
                     '-library-name/-'
 
>--+-------------------------------------------------+---------->
   |         (16)   .-*FIRST------.  .-*REPLACE-.    |
   '-OUTMBR(--------+-member-name-+--+-*ADD-----+--)-'
 
>--+-----------------------------+------------------------------>
   |          (17)   .-*OBJ-.    |
   '-INFTYPE(--------+-*ERR-+--)-'
                     +-*LIB-+
                     '-*MBR-'
 
>--+--------------------------------------------------+--------><
   |           .-'*'-----------------------------.    |
   '-OPTFILE(--+-'optical-directory-path-name/*'-+--)-'
               '-'optical-file-path-name'--------'
 
 

Notes:

  1. OBJ(*ALL) is required when more than one library is specified.

  2. A maximum of 300 repetitions.

  3. Only one library can be specified when SAVF is used.

  4. A maximum of 4 repetitions.

  5. A list of the valid OS/400 object types for this command is in Expanded Parameter Descriptions. The maximum number of repetitions is equal to the number of valid object types for this command.

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

  7. A maximum of 75 repetitions.

  8. All parameters preceding this point can be specified in positional form.

  9. Applies to tape devices only.

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

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

  12. This value is not valid when DEV(*SAVF) is specified.

  13. This parameter is valid only when SAVACT(*LIB), SAVACT(*SYNCLIB), or SAVACT(*SYSDFN) is specified.

  14. This option is only valid for interactive jobs.

  15. A maximum of 50 repetitions.

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

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