SAV (Save) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: No
>>-SAV--DEV(--+-'save-file-path-name'-----------------+--)------>
              +-'diskette-device-path-name'-----------+
              +-'optical-device-path-name'------------+
              +-'tape-media-library-device-path-name'-+
              | .-----------------------------.       |
              | V                             | (1)   |
              '-----'tape-device-path-name'---+-------'
 
                                                                         (4)
>--+-------------------------------------------------------------------+------->
   |       .------------------------------------------------------.    |
   |       |    .-'*'---------------------.                       |    |
   |       V    |                    (2)  |  .-*INCLUDE-.    (3)  |    |
   '-OBJ(----(--+-'object-path-name'------+--+-*OMIT----+--)------+--)-'
 
>--+------------------------+--+----------------------+--------->
   |           .-*ALL--.    |  |          .-*LCL-.    |
   '-SUBTREE(--+-*DIR--+--)-'  '-SYSTEM(--+-*RMT-+--)-'
               +-*NONE-+                  '-*ALL-'
               +-*OBJ--+
               '-*STG--'
 
>--+---------------------------------------------------------------------------+-->
   |             .-*ALL-------.  .-*ALL-------.  .-*ALL-----.  .-*ALL-----.    |
   '-CHGPERIOD(--+-*LASTSAVE--+--+-start-time-+--+-end-date-+--+-end-time-+--)-'
                 '-start-date-'
 
>--+----------------------+------------------------------------->
   |          .-*NO--.    |
   '-PRECHK(--+-*YES-+--)-'
 
>--+--------------------------------+--------------------------->
   |          .-*CURRENT-------.    |
   '-TGTRLS(--+-*PRV-----------+--)-'
              '-target-release-'
 
>--+-----------------------------------+------------------------>
   |          .-*NO---------------.    |
   '-UPDHST(--+-*YES--------------+--)-'
              | .----------.      |
              | V          | (5)  |
              '---+-*PC--+-+------'
                  '-*SYS-'
 
>--+---------------------------------------------+-------------->
   |                  (6)                        |
   |       .-*MOUNTED-----------------------.    |
   |       | .-----------------------.      |    |
   |       | V                       | (7)  |    |
   '-VOL(--+-----volume-identifier---+------+--)-'
 
>--+-----------------------------------------+------------------>
   |         .-*GEN---------------------.    |
   '-LABEL(--+-diskette-file-identifier-+--)-'
             '-tape-file-identifier-----'
 
>--+--------------------------------------+--------------------->
   |         (8)   .-*END------------.    |
   '-SEQNBR(-------+-sequence-number-+--)-'
 
>--+----------------------------------+------------------------->
   |           .-*PERM-----------.    |
   '-EXPDATE(--+-expiration-date-+--)-'
 
>--+-------------------------+---------------------------------->
   |          .-*REWIND-.    |
   '-ENDOPT(--+-*LEAVE--+--)-'
              '-*UNLOAD-'
 
>--+----------------------------+--+----------------------+----->
   |         .-*NONE-------.    |  |          .-*DEV-.    |
   '-CLEAR(--+-*ALL--------+--)-'  '-DTACPR(--+-*NO--+--)-'
             |        (9)  |                  '-*YES-'
             +-*AFTER------+
             '-*REPLACE----'
 
>--+-----------------------+------------------------------------>
   |           .-*DEV-.    |
   '-COMPACT(--+-*NO--+--)-'
 
>--+--------------------------------------------------+--------->
   |           .-'*'-----------------------------.    |
   '-OPTFILE(--+-'optical-directory-path-name/*'-+--)-'
               '-'optical-file-path-name'--------'
 
>--+-----------------------+------------------------------------>
   |          .-*NO---.    |
   '-SAVACT(--+-*YES--+--)-'
              '-*SYNC-'
 
>--+-------------------------------+---------------------------->
   |             .-*NONE------.    |
   '-SAVACTOPT(--+-*ALWCKPWRT-+--)-'
 
>--+-----------------------------------------------+------------>
   |              .-*NONE---------------------.    |
   '-SAVACTMSGQ(--+-*WRKSTN-------------------+--)-'
                  '-'message-queue-path-name'-'
 
>--+-----------------------------------------+------------------>
   |          .-*NONE-------------------.    |
   '-OUTPUT(--+-*PRINT------------------+--)-'
              +-'stream-file-path-name'-+
              '-'user-space-path-name'--'
 
>--+---------------------------+--+-------------------------+--->
   |           .-*ALL-----.    |  |             .-*YES-.    |
   '-INFTYPE(--+-*ERR-----+--)-'  '-USEOPTBLK(--+-*NO--+--)-'
               '-*SUMMARY-'
 
>--+----------------------------------------------------+------><
   |          .-*DFT-------------------------------.    |
   '-ASPDEV(--+-*ALLAVL----------------------------+--)-'
              +-*----------------------------------+
              +-*SYSBAS----------------------------+
              +-*CURASPGRP-------------------------+
              '-auxiliary-storage-pool-device-name-'
 
 

Notes:

  1. A maximum of 4 repetitions.

  2. You can specify a pattern for this path name.

  3. A maximum of 300 repetitions.

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

  5. A maximum of 2 repetitions.

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

  7. A maximum of 75 repetitions.

  8. Applies to tape devices only.

  9. This value is not valid when a save file is specified.