SAVLIB (Save Library) syntax diagram


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

Notes:

  1. Only one library can be specified when SAVF is specified.

  2. LIB(*NONSYS), LIB(*ALLUSR), or LIB(*IBM) is not valid when TGTRLS(*PRV) is specified.

  3. A maximum of 300 repetitions.

  4. A maximum of 4 repetitions.

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

  6. A maximum of 75 repetitions.

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

  8. Applies to tape devices only.

  9. STRLIB is valid only when LIB(*NONSYS), LIB(*ALLUSR), or LIB(*IBM) is specified.

  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. SAVACT(*SYNCLIB) is not valid when LIB(*IBM) is specified.

  14. SAVACT(*LIB), SAVACT(*SYNCLIB), or SAVACT(*SYSDFN) is valid only when STG(*KEEP) is specified.

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

  16. This option is only valid for interactive jobs.

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

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