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:
- FROMDEV(*SERVICE) cannot be specified with TODEV(*SERVICE).
- All parameters preceding this point can be specified in positional form.
- FROMSAVF and TOSAVF apply only when the corresponding DEV parameter is *SAVF.
- SEQNBR parameters can only be used when the corresponding DEV parameter specifies a tape.
- FROMENDOPT and TOENDOPT apply only when the corresponding DEV parameter is a tape or optical device.
- TOVOL applies only to tape, or optical media.
- CLEAR can be used only when TODEV(*SAVF) is specified.
- REPLACE applies only when TODEV(*SERVICE) is specified.
- RELPTFGRP applies only when FROMDEV(*SERVICE) is specified and TODEV specifies a device name.