CPYPTFGRP (Copy PTF Group) syntax diagram


Job: B,I Pgm: B, I REXX: B, I Exec
Threadsafe: No
>>-CPYPTFGRP--PTFGRP(--+-PTF-group-name-+--)-------------------->
                       '-*ALL-----------'
 
                        (1)
>--FROMDEV(--+-*SERVICE------------+--)------------------------->
             +-*SAVF---------------+
             +-tape-device-name----+
             '-optical-device-name-'
 
                      (1)             (2)
>--TODEV(--+-*SERVICE------------+--)--------------------------->
           +-*SAVF---------------+
           +-tape-device-name----+
           '-optical-device-name-'
 
>--+------------------------------------------------------+----->
   |           (3)   .-*LIBL/--------.                    |
   '-FROMSAVF(-------+---------------+--save-file-name--)-'
                     +-*CURLIB/------+
                     '-library-name/-'
 
>--+------------------------------------------+----------------->
   |             (4)   .-*SEARCH---------.    |
   '-FROMSEQNBR(-------+-sequence-number-+--)-'
 
>--+----------------------------------+------------------------->
   |             (5)   .-*REWIND-.    |
   '-FROMENDOPT(-------+-*LEAVE--+--)-'
                       '-*UNLOAD-'
 
>--+---------------------------------------+-------------------->
   |        (6)   .-*MOUNTED----------.    |
   '-TOVOL(-------+-volume-identifier-+--)-'
 
>--+----------------------------------------+------------------->
   |           (4)   .-*END------------.    |
   '-TOSEQNBR(-------+-sequence-number-+--)-'
 
>--+--------------------------------+--------------------------->
   |           (5)   .-*REWIND-.    |
   '-TOENDOPT(-------+-*LEAVE--+--)-'
                     '-*UNLOAD-'
 
>--+----------------------------------------------------+------->
   |         (3)   .-*LIBL/--------.                    |
   '-TOSAVF(-------+---------------+--save-file-name--)-'
                   +-*CURLIB/------+
                   '-library-name/-'
 
>--+---------------------------+-------------------------------->
   |        (7)   .-*NONE-.    |
   '-CLEAR(-------+-*ALL--+--)-'
 
>--+------------------------------+----------------------------->
   |          (8)   .-*LVLGT-.    |
   '-REPLACE(-------+-*NO----+--)-'
                    '-*YES---'
 
>--+------------------------------+----------------------------><
   |            (9)   .-*NO--.    |
   '-RELPTFGRP(-------+-*YES-+--)-'
 
 

Notes:

  1. FROMDEV(*SERVICE) cannot be specified with TODEV(*SERVICE).

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

  3. FROMSAVF and TOSAVF apply only when the corresponding DEV parameter is *SAVF.

  4. SEQNBR parameters can only be used when the corresponding DEV parameter specifies a tape.

  5. FROMENDOPT and TOENDOPT apply only when the corresponding DEV parameter is a tape or optical device.

  6. TOVOL applies only to tape, or optical media.

  7. CLEAR can be used only when TODEV(*SAVF) is specified.

  8. REPLACE applies only when TODEV(*SERVICE) is specified.

  9. RELPTFGRP applies only when FROMDEV(*SERVICE) is specified and TODEV specifies a device name.