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:
- Only one library can be specified when SAVF is specified.
- LIB(*NONSYS), LIB(*ALLUSR), or LIB(*IBM) is not valid when TGTRLS(*PRV) is specified.
- A maximum of 300 repetitions.
- A maximum of 4 repetitions.
- This value cannot be specified when using an optical media library device.
- A maximum of 75 repetitions.
- All parameters preceding this point can be specified in positional form.
- Applies to tape devices only.
- STRLIB is valid only when LIB(*NONSYS), LIB(*ALLUSR), or LIB(*IBM) is specified.
- The SAVF parameter is required when DEV(*SAVF) is specified.
- The MEDDFN parameter is required when DEV(*MEDDFN) is specified.
- This value is not valid when DEV(*SAVF) is specified.
- SAVACT(*SYNCLIB) is not valid when LIB(*IBM) is specified.
- SAVACT(*LIB), SAVACT(*SYNCLIB), or SAVACT(*SYSDFN) is valid only when STG(*KEEP) is specified.
- This parameter is valid only when SAVACT(*LIB), SAVACT(*SYNCLIB), or SAVACT(*SYSDFN) is specified.
- This option is only valid for interactive jobs.
- This parameter is valid only if OUTPUT(*OUTFILE) is specified.
- This parameter is valid only if OUTPUT(*PRINT) or OUTPUT(*OUTFILE) is specified.