Operands, Example, Copy – IBM SC34-5764-01 User Manual

Page 288: Cd copy

Advertising
background image

CD

When you type CD from the command line use the following syntax:

CD

dirid

CD changes the current directory.

Operands

dirid

specifies a REXX File System directory level identifier. This is partially or fully qualified. See the CD
command, section “CD” on page 321, for more information.

Example

'CD TEMP'

This example changes the current directory to TEMP and updates the FLST display.

COPY

When you type COPY on the FLST command column use the following syntax:

COPY

/

fileid

COPY copies a file.

Operands

fileid

specifies the file ID of the file where the results are placed.

Note: If fileid already exists, it is replaced.

Example

'COPY / TEST3.EXEC'

This example, executed from the command column next to TEST1.EXEC, creates a new file,
TEST3.EXEC, that is identical to TEST1.EXEC.

When you type COPY from the command line use the following syntax:

COPY

fileid1

fileid2

Operands

fileid1

specifies the file ID of the file the command acts on.

fileid2

specifies the file ID of the file where the results are placed.

Note: If fileid2 already exists, the contents of fileid1 replaces it.

Example

'COPY TEST1.EXEC TEST3.EXEC'

This example, executed from the command line, creates a new file (TEST3.EXEC) that is identical to
TEST1.EXEC.

File System

266

CICS TS for VSE/ESA: REXX Guide

Advertising