CPY (Copy) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: No
                                  (1)
>>-CPY--OBJ(--'object-path-name-'-------)----------------------->
 
                                            (2)
>--+--------------------------------------+--------------------->
   |         .-.---------------------.    |
   +-TODIR(--+-'directory-path-name'-+--)-+
   '-TOOBJ(--'object-path-name'--)--------'
 
>--+----------------------+------------------------------------->
   |          .-*NO--.    |
   '-SYMLNK(--+-*YES-+--)-'
 
>--+---------------------------------------------------------------------------+-->
   |             .-*OBJ-------.               .-*OBJ------.    (3)             |
   +-FROMCCSID(--+-*PCASCII---+--)--TOCCSID(--+-*CALC-----+--)-----------------+
   |             +-*JOBCCSID--+               +-*STDASCII-+                    |
   |             '-from-CCSID-'               +-*PCASCII--+                    |
   |                                          +-*JOBCCSID-+                    |
   |                                          '-to-CCSID--'                    |
   |              .-*OBJ-----------.                  .-*OBJ---------.    (3)  |
   '-FROMCODPAG(--+-*PCASCII-------+--)--TOCODEPAGE(--+-*CALC--------+--)------'
                  '-from-code-page-'                  +-*STDASCII----+
                                                      +-*PCASCII-----+
                                                      '-to-code-page-'
 
>--+-------------------------+--+-------------------------+----->
   |          .-*BINARY-.    |  |           .-*NODIR-.    |
   '-DTAFMT(--+-*TEXT---+--)-'  '-SUBTREE(--+-*NONE--+--)-'
                                            '-*ALL---'
 
>--+----------------------+--+-----------------------+---------><
   |         .-*NEW--.    |  |           .-*NO--.    |
   '-OWNER(--+-*KEEP-+--)-'  '-REPLACE(--+-*YES-+--)-'
 
 

Notes:

  1. You can specify a pattern for this path name only if you specify the TODIR parameter.

  2. All parameters preceding this point can be specified positionally.

  3. FROMCCSID/TOCCSID are mutually exclusive with FROMCODPAG/TOCODEPAGE.