REPLACE, REPLACEX primary commands

The REPLACE and REPLACEX primary commands replace another member or data set with specified lines from the data in the current editor session.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-+-REPLace--+--+-------------------------------------+-------->
   +-REPLACEX-+  +-+---+-memname-+---+-----------------+   
   '-REPLX----'  | '-(-'         '-)-'                 |   
                 +-datasetname-+-----------+-----------+   
                 |             '-(memname)-'           |   
                 +-'userid.datasetname-+-----------+-'-+   
                 |                     '-(memname)-'   |   
                 +-rt:applid:rname---------------------+   
                 '-MQ:manager:queuename----------------'   

>--+---------------------+-------------------------------------><
   '-from_label-to_label-'   

memname
Name of member to be replaced.
datasetname
Name of data set to be replaced. The default High Level Qualifier (HLQ) is used. Typically, the default is the TSO PREFIX for your user ID.
userid.datasetname
Name of fully-qualified data set to be replaced.
rt:applid:rname
You can specify a CICS® Transient Data Queue or CICS Temporary Storage Queue in place of a data set name, where:
rt
Resource type. Valid values are:
TD
For a Transient Data Queue.
TS
For a Temporary Storage Queue.
applid
The VTAM® applid of the CICS system.
rname
The name of the resource.
MQ:manager:queuename
You can specify a MQ queue, where:
manager
The MQ manager to be used. If you specify a generic name, Z Data Tools displays a list of matching managers to select from.
queuename
The queue to be used. If you specify a generic name, Z Data Tools displays a list of matching queues to select from.
from_label
Label indicating first line to be copied into the member or data set.
to_label
Label indicating last line to be copied into the member or data set.

Related tasks and examples