z/OS ISPF Edit and Edit Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


MOVE— Move a Data Set or a Data Set Member

z/OS ISPF Edit and Edit Macros
SC19-3621-00

The MOVE macro command moves a sequential data set, member of a partitioned data set, or z/OS® UNIX file into the data you are editing.

Syntax

Read syntax diagramSkip visual syntax diagram
Macro command syntax

>>-ISREDIT--MOVE--+-member---+--+-AFTER--+--+-linenum-+--------->
                  +-(member)-+  '-BEFORE '  '-label---'   
                  +-dsname---+                            
                  '-pathname-'                            

>--+--------+--------------------------------------------------><
   +-ASCII--+   
   +-EBCDIC-+   
   '-UTF8---'   

member
A member of the ISPF library or partitioned data set you are editing.
dsname
A partially or fully qualified data set name. If the data set is partitioned you must include a member name in parentheses.
pathname
The pathname for a z/OS UNIX regular file to be moved. (Also, see Specifying z/OS UNIX pathnames with edit primary and macro commands.)
AFTER
Specifies that the member is to be moved after the target specified by linenum or label.
BEFORE
Specifies that the member is to be moved before the target specified by the label.
linenum
A relative line number identifying the target of the move.
label
A label identifying the target of the move. It can be either a label that you define, or one of the editor-defined labels, such as .ZF and .ZL.
ASCII, EBCDIC, UTF8
When one of these keywords is supplied, if the data is using a different character set to that designated by the keyword, the data being moved in from the external file is converted from the character set designated by the keyword to the character set specified for the file being edited or to the terminal character set.
Note: If member or dsname is less than 8 characters and the data set you are editing is partitioned, a like-named member is copied. If a like-named member does not exist, the name is considered to be a partially qualified data set name.

Description

The member, data set, or z/OS UNIX file is deleted after the move. For a concatenated sequence of ISPF libraries, the deletion occurs only if the member was in the first library of the concatenation sequence.

See Copying and moving data if you need more information.

Return codes

0
Normal completion
8
End of data before last record read or the specified data set is in use
12
Invalid line pointer (linenum or label); member not found or BLDL error
16
End of data before first record read
20
Syntax error (invalid name, incomplete range), or I/O error

Examples

To move the contents of member ABC after the first line in the current data:
ISREDIT MOVE ABC AFTER .ZF
To move all of data set MOVECOPY.DATA before the line where the cursor is currently positioned:
ISREDIT MOVE MOVECOPY.DATA BEFORE .ZCSR

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014