RPLDOC (Replace Document) syntax diagram


Job: B,I Pgm: B,I REXX: B,I Exec
Threadsafe: No
>>-RPLDOC--TODOC(--+-*DOCID--------+--)------------------------->
                   '-document-name-'
 
             .-*LIBL/--------.                        (1)
>--DOCFILE(--+---------------+--database-file-name--)----------->
             +-*CURLIB/------+
             '-library-name/-'
 
>--+-------------------------------+---------------------------->
   |                 (2) (3)       |
   |         .-*NONE----------.    |
   '-TOFLR(--+-folder-name----+--)-'
 
>--+-------------------------------------------------+---------->
   |         .-*NONE----------------------------.    |
   '-DOCID(--+-'library-assigned-document-name'-+--)-'
 
>--+-----------------------------+------------------------------>
   |          .-*FIRST------.    |
   '-DOCMBR(--+-member-name-+--)-'
 
>--+------------------------+----------------------------------->
   |           .-*DOC--.    |
   '-DOCPART(--+-*IDP--+--)-'
               '-*BOTH-'
 
>--+--------------------------------------------+--------------->
   |          (4)   .-*DFT-----------------.    |
   '-DOCTYPE(-------+-*FFT-----------------+--)-'
                    +-*RFT-----------------+
                    '-document-type-number-'
 
>--+--------------------------------------+--------------------->
   |         .-*CURRENT--------------.    |
   '-USRID(--+-user-ID--user-address-+--)-'
 
>--+----------------------------------------------------+------->
   |            .-*SYSVAL--------------------------.    |
   '-DOCCHRID(--+-*DEVD----------------------------+--)-'
                '-graphic-character-set--code-page-'
 
>--+----------------------------------------------------+------><
   |            .-*SYSVAL--------------------------.    |
   '-CMDCHRID(--+-*DEVD----------------------------+--)-'
                '-graphic-character-set--code-page-'
 
 

Notes:

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

  2. This value cannot be specified when a document name is specified on the TODOC parameter.

  3. This value must be specified when a document is specified on the DOCID parameter.

  4. This parameter is ignored if only the IDP is being replaced.