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


Performing line command functions

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

You cannot issue line commands directly from an edit macro. For example, you cannot use the M (move) line command within an edit macro.

However, you can perform most of the functions provided by line commands by writing an edit macro. By using edit assignment statements or by issuing primary commands, you can perform functions such as move, copy, or repeat. For example, if you want to move a line, you can assign the line to a CLIST or REXX variable, delete the original line using the DELETE command, and assign the variable to a new line in the data.

Some commands can be processed only from within a macro. These commands provide functions done with line commands from the keyboard. Table 1 identifies the commands, the corresponding line commands, and the functions performed.

Table 1. Edit macro commands corresponding to line commands
Edit Macro Statement Corresponding Line Command Function
INSERT I Inserts temporary lines
SHIFT ( ( Shifts columns left
SHIFT ) ) Shifts columns right
SHIFT < < Shifts data left
SHIFT > > Shifts data right
TENTER TE Starts text entry mode
TFLOW TF Performs text flow
TSPLIT TS Performs text split
For example:
CLIST Statement REXX Statements
 
ISREDIT TFLOW 1
ADDRESS ISPEXEC
'ISREDIT TFLOW 1'
causes the paragraph starting on line 1 to be flowed in the same way as a TF (text flow) line command would if entered on the first line.

For more information on line command functions in edit macros, see Edit macro commands and assignment statements.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014