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


Manipulating data with edit assignment statements

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

You can use assignment statements to obtain, replace, or add data being edited.

To copy a line, use:

CLIST Statement REXX Statements
 
ISREDIT LINE_AFTER 5 = LINE 2
ADDRESS ISPEXEC
'ISREDIT LINE_AFTER 5 = LINE 2'

To copy line 1 from the data set into the variable LINEDATA, use:

CLIST Statement REXX Statements
 
ISREDIT (LINEDATA) = LINE 1
ADDRESS ISPEXEC
'ISREDIT (LINEDATA) = LINE 1'

To replace the first line in the data set, using the data from the variable LINEDATA, use:

CLIST Statement REXX Statements
 
ISREDIT LINE 1 = (LINEDATA)
ADDRESS ISPEXEC
'ISREDIT LINE 1 = (LINEDATA)'

To add a new line after line 1 in the data set using the variable NEWDATA, use:

CLIST Statement REXX Statements
 
ISREDIT LINE_AFTER 1 = (NEWDATA)
ADDRESS ISPEXEC
'ISREDIT LINE_AFTER 1 = (NEWDATA)'

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014