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:
- OBJ(*ALL) is required when more than one library is specified.
- A maximum of 300 repetitions.
- Only one library can be specified when SAVF is used.
- A maximum of 4 repetitions.
- 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.
- 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.
- 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.
- This parameter is valid only when SAVACT(*LIB), SAVACT(*SYNCLIB), or SAVACT(*SYSDFN) is specified.
- This option is only valid for interactive jobs.
- A maximum of 50 repetitions.
- This parameter is valid only if OUTPUT(*OUTFILE) is specified.
- This parameter is valid only if OUTPUT(*OUTFILE) or OUTPUT(*PRINT) is specified.