Here’s a List of Basic ISPF Editor Commands

Here are useful ISPF editor commands for your daily use.

COMMANDFUNCTION
Data shift left

 

Shifts a single line of program source code to the left without affecting the program labels or comment i.e. Data from column one to the first blank and data following several blanks are not moved. May be specified with a number identifying the distance to move (default 2)

<< Block data shift left

 

All of the lines in the block are affected as if you typed individual data shift left commands. May be specified with a number identifying the distance to move (default 2)

Data shift right

 

As for data shift left but the opposite direction. May be specified with a number identifying the distance to move (default 2)

>> Block data shift right
(Column shift left

 

Works similarly to data shift left but moves everything within the bounds, nothing stays fixed in place. May be specified with a number identifying the distance to move (default 2)

((Block column shift left
)Column shift right
))Block column shift right
AAfter

 

used with copy, move, or paste to specify the line after which the copied/moved lines are to be inserted

BBefore

 

used with copy, move, or paste to specify the line before which the copied/moved lines are to be inserted

BndsDisplay bounds above this line

 

Displays the current boundary positions which can be changed by tying < and > in the new boundary positions that you require

CCopy

 

Copies this line either to another place within the current file (using a, b, or o to identify destination) or to another file (using create, replace or cut commands). Can be specified with a number to indicate that multiple lines are to be copied

CCBlock copy
ColsDisplay the column ruler above this line
DDelete

 

Deletes this line from the file. Can be specified with a number to indicate that following lines are also to be deleted

DDBlock Delete
FDisplay the first excluded line

 

Can be specified with a number to display more than one excluded lines. This command is only valid on excluded lines

IInsert a new line after this one

 

Can be specified with a number to insert multiple lines

LDisplay the last excluded line

 

Can be specified with a number to display more than one excluded lines. This command is only valid on excluded lines

LcConvert all text on this line to lower case

 

Can be specified with a number to convert more than one line to lower case

LccBlock convert to lower case
MMove

 

Works the same as copy except that the lines are removed from their current location

MMBlock move

 

mask Display the mask line above this one

The mask defines the default content for inserted lines

OOverlay (used with copy and move to specify the line into which the copied/moved line is to be inserted – only spaces are replaced). Can be specified with a number to indicate that following lines are also to be overlaid
OOBlock overlay (the lines to be copied/moved are inserted into the block as many times as they will fit)
RRepeat – create a duplicate of this line

 

Can be specified with a number to indicate that additional duplicate lines are to be produced

RRBlock repeat

 

Can be specified with a number to indicate that multiple duplicates of the block are to be produced

SShow the excluded line that has the least indentation

 

Can be specified with a number to display more than one excluded lines. When multiple lines are displayed they may not be together. This command is only valid on excluded lines

TabsShow the tab settings above this line

 

Hardware tabs positions are indicated by asterisks (*) and software tabs by hyphens (-) or underscores (_)

TEText Entry mode – allows bulk insert following this line

 

You can start entering data without paying any attention to lines as the text will wrap automatically. Press the enter key to exit from text entry mode

TFText flow – flows the text between the margins for this line and following lines until a blank line is found, the indentation changes, or a special character (period, colon, ampersand, less than, or form feed) is found in the first column
TJText Join – merges this line with the following one
TSText split – splits this line in two

 

You need to position the cursor at the position on the line where you want the split to occur

UCConvert all text on this line to upper case

 

Can be specified with a number to convert multiple lines

UCCBlock convert to upper case
XExclude this line from the display

 

Can be specified with a number to exclude multiple lines. This command is useful when you need to view two blocks of data that are in different locations within the file, just exclude the intervening data from the display

XXBlock exclude
.label assignment

 

You can assign a label to any non-excluded line by typing a period followed by the label name. The label can then be used to identify the line in primary commands. You cannot start labels with “z” as these labels are reserved for system use

Related Posts

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.