CPYSRCF (Copy Source File) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: Conditional; see Restrictions
>>-CPYSRCF------------------------------------------------------>
 
              .-*LIBL/--------.
>--FROMFILE(--+---------------+--database-source-file-name--)--->
              +-*CURLIB/------+
              '-library-name/-'
 
>--TOFILE(--+-*PRINT--------------------------+--)-------------->
            | .-*LIBL/--------.               |
            '-+---------------+--to-file-name-'
              +-*CURLIB/------+
              '-library-name/-'
 
>--FROMMBR(--+-*ALL-----------------+--)------------------------>
             +-*FIRST---------------+
             +-from-member-name-----+
             '-generic*-member-name-'
 
>--+-------------------------------+---------------------------->
   |         .-*FROMMBR-------.    |
   '-TOMBR(--+-*FIRST---------+--)-'
             '-to-member-name-'
 
                                (1)
>--+--------------------------+--------------------------------->
   |          .-*REPLACE-.    |
   '-MBROPT(--+-*ADD-----+--)-'
 
>--+--------------------------------------+--------------------->
   |          .-*SAME----------------.    |
   |          | .------------------. |    |
   |          | V             (2)  | |    |
   '-SRCOPT(--+---+-*SEQNBR-+------+-+--)-'
                  '-*DATE---'
 
>--+----------------------------------------------------------------+-><
   |          .-1.00---------------------.  .-1.00-------------.    |
   '-SRCSEQ(--+-starting-sequence-number-+--+-increment-number-+--)-'
 
 

Notes:

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

  2. A maximum of 2 repetitions.