Ispf Editor

Primary Commands in EDIT or Browse or View mode:

HILITE is used to control the use of color in the editor by changing the settings for the enhanced color and language-sensitive editing features. Note: Language-sensitive and enhanced coloring of the edit session is only available when enabled by the installer or the person who maintains the ISPF product. View/Edit Options in Dataset: Datasets can be displayed or modified in two ways: Through ISPF Primary Option Menu Panel, '1' for View and '2' for Edit. Through Dataset List Utility - 3.4 (Option 4 under Utility Selection Panel) as mentioned in previous section. By entering 'b' or 'v' or 'e' to the left side of Dataset or Member name, Browse.

Primary commands are those that can be executed from the command line and are valid on any or all the lines of the dataset. General rules for entering primary commands are:

  • Either a blank or a comma can be used a separator between command operands.

  • The command input field contains trailing nulls. This means:

  • You can use the insert mode to insert or expand operands.

  • You cannot use the cursor keys to space between operands of a command.

  • If an error is detected in processing the command, then a message is displayed and the command is left in the command field.

  • If an ampersand (&) immediately precedes the command name, then the command is left in the command field after execution.

Following are the list of commands that can be performed on a Dataset or Member of a PDS:

  • BOUNDS: Kingdom come deliverance console commands add lockpicks. To set the left and right bounds.

  • CANCEL: To cancel edit without saving the data.

  • CAPS: To set CAPS mode off or on.

  • CAPS ON: saves all the data in the dataset in Capitals.

  • CAPS OFF: leaves the data as typed.

  • CHANGE: To find and then change a specified character string.

  • COPY: To copy data from another member or sequential data set.

  • CREATE: To create a new member of a partitioned data set.

  • CUT: To copy or move data to a clipboard.

  • DISPLAY: This command is available only in Browse mode operations. The DISPLAY command is used to specify the character to be displayed to represent invalid (non-displayable) characters, and to specify whether or not carriage control characters are to be displayed.

  • DELETE: To delete excluded or no excluded lines from data being edited.

  • EDIT: To cause a recursive entry into edits. Edit

  • EXCLUDE: To exclude lines those contain a specified character string.

  • FIND: To find a specified character string. Features are described in detail later in this chapter.

  • HEX: To set HEX mode off or on and to specify the hex display format.

  • HILITE: To set the enhanced and language sensitive colour settings.

  • MODEL: To copy a predefined model. A MODEL is a group of source statements and optional notes that provide sample data for creating and editing dialogs. The models contain prototype lines indicating the form of the requested dialog element, parts of which you may overtype with application-specific data.

  • MOVE: To move (copy and delete) a member or sequential data set.

  • NULLS: To set NULLS mode off or on and to specify the type of nulls.

  • NUMBER: To set NUMBER mode on or off.

  • PASTE: To copy or move data from a clipboard.

  • RENUM: To set NUMBER mode on and renumber the data.

  • REPLACE: To replace a member or an entire sequential data set.

  • SAVE: To save the data without ending the edit session.

  • SORT: To perform sorting functions on the data being edited. Sorting can be done on columns, in ascending or descending sequence.

  • TABS: To set TABS mode off or on and to specify the logical tabs char.

  • UNDO: To 'undo' (reverse) the last command you entered.

  • UNNUM: To set NUMBER mode off and blank out sequence numbers.

The standard scrolling commands that are valid on the EDIT Entry panel are valid in the Edit screen also.


If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!


Ispf Editor Line Command

Ispf Editor

The following table describes some of the most used ISPF commands that may come very handy when editing datasets or members the mainframe:

Ispf Editor Line Commands

Edit Primary Commands
CHANGE string1 string2Changes first occurrence of string1 with string2. CHANGE can also be used as C
CHANGE ALL string1 string2Changes all occurrences of string1 with string2
CHANGES LAST string1 string2Changes string1 with string2, starting at the bottom of the data and searching backward to find the last occurrence of string1
CHANGE PREV string1 string2Changes string1 with string2, starting at the current cursor location and searching backward to find the previous occurrence of string1
CHANGE NEXT string1 string2Changes string1 with string2, starting at the first position after the current cursor location and searching ahead to find the next occurrence of string1
CHANGE PREFIX string1 string2Changes string1 with string2, locating string1 at the beginning of a word
CHANGE SUFFIX string1 string2Changes string1 with string2, locating string1 at the end of a word
CHANGE WORD string1 string2Changes string1 with string2 providing string1 is a word
CHANGE X string1 string2Changes string1 with string2 scanning only the lines that are excluded from the display
CHANGE NX string1 string2Changes string1 with string2 scanning only the lines that are not excluded from the display
C string1 string2 col1 col2Changes string1 with string2 between column 1 and column 2
COPY dataCopies a sequential data set, a member of a partitioned data set, or a z/OS UNIX file into the data being edited
COPY data AFTER labelCopies data after the line with the specified label
COPY data BEFORE labelCopies data before the line with the specified label
CREATE dataCreates a member of a partitioned data set, a sequential data set, or z/OS UNIX file from the data you are editing. Use CREATE or CRE.
CREATE data label1 label2Creates a member, dataset or UNIX file. Label1 and label2 identify the start and end of the group of lines which are added to the new member.
CREATE data .zf .zlCreates a member, dataset or UNIX file of the entire member being edited. .ZF sets a label for the first line and .ZF for the last line.
DEL ALLDeletes all the lines from the data you are editing
DEL XDeletes all the lines that are excluded
DEL NXDeletes all the lines that are not excluded
DEL label1 label2Deletes the group of lines defined from label1 up to label2
EDIT memberEdits another sequential data set, partitioned data set member, or z/OS UNIX file during your current edit session
EXCLUDE ALLHides from view all the lines of the member being edited and replaces them with a dashed line. Use EXCLUDE or X
EXCLUDE stringHides from view the first line that contain a search string
EXCLUDE string ALLHides from view all the lines that contain the search string
EXCLUDE string PREVHides from view the line that contains the search string before the cursor
EXCLUDE string NEXTHides from view the line that contains the search string after the cursor
EXCLUDE string PREFIXHides from view the line that contains the search string as a prefix from a word
EXCLUDE string SUFFIXHides from view the line that contains the search string as a suffix from a word
EXCLUDE string WORDHides from view the line that contains the search string as an all word
EXCLUDE string col1 col2Hides from view the line that contains the search string between col1 and col2
FIND string
Finds the specified string (ex: F REVIEW). F can be used instead of FIND.
FIND string NEXTFinds the next occurrence of the string in regards to where the cursor is positioned
FIND string PREVFinds the previous occurrence of the string in regards to where the cursor is positioned
FIND string FIRSTFinds the first occurrence of the string
FIND string LASTFinds the last occurrence of the string
FIND string ALLFinds all the occurrences of the string
FIND string SUFFIX Finds the string as a suffix of a word
FIND string PREFIX Finds the string as a prefix of a word
FIND string WORDFinds the string as a all word
FIND string col1 col2Finds the string between column 1 and column 2 (ex: F HELLO 20 40)
.LABELDefines a label on a line (ex: .HERE)
LOCATE lineLocates line number n (ex: L 20, LOC 20, LOCATE 20)
LOCATE labelLocates the line with the specified label
MOVE dataMoves a sequential data set, member of a partitioned data set, or z/OS UNIX file into the data being edited
MOVE data AFTER labelMoves data after the line with the specified label
MOVE data BEFORE labelMoves data after the line with the specified label
REPLACE dataReplaces a sequential data set, member of a partitioned data set, or z/OS UNIX file with data you are editing. If the member , or z/OS UNIX file you want to replace does not exist, the editor creates it. User REPLACE or REP.
REPLACE data label1 label2Label1 and label2 identify the start and end of the group of lines to replace the member or data set
RESETRemoves the messages that appear in the editing area. Use RESET or RES.
SAVESaves all the changes made
SORTSorts ascending all the data in the member being edited
SORT ASame as SORT
SORT DSorts descending all the data in the member being edited
SORT XSorts only the lines that are excluded
SORT NXSorts only the lines that are not excluded
SORT col1 col2Sorts data by the content from col1 to col2
Edit Line Commands
UCChanges the text on the line from lower case to upper case
UCnChanges the text on the ‘n’ lines starting at this one to upper case
LCChanges the text of the line from upper case to lower case
LCnChanges the text on the ‘n’ lines starting at this one to lower case
CCopies the content of the line
CnCopies the content of the line ‘n’ times
CCCopies the block of lines starting with the first CC command and ending with the second CC command
MMoves the content of the line
MnMoves the content of n lines starting at this one
MMMoves the block of lines starting with the first MM command and ending with the second MM command
APlaces the copied/moved lines after this line
AnRepeats the copied/moved lines n times after this line
B Places the copied/moved lines before this line
BnRepeats the copied/moved lines n times before this line
DDeletes the line
DnDeletes n lines starting at this line
DDDeletes the block of lines starting with the first DD command and ending with the second DD command
XExcludes this line
Xn Excludes n lines starting at this line
XXExcludes the block of lines starting with the first XX command and ending with the second XX command
RRepeats this line
RnRepeats n lines starting at this one
RRRepeats the block of lines starting with the first RR command and ending with the second RR command
RRnRepeats the block of lines starting with the first RR command and ending with the second RR command ‘n’ times
OOverlays line content with copied/moved line
OnOverlays ‘n’ lines starting at this one with copied/moved lines
OOOverlays the block of lines starting with the first OO command and ending with the second OO command with copied/moved lines
SShows one line of the excluded text
SnShows n lines of the excluded text
FShows the first line of the excluded text
FnShows the first n lines of the excluded text
LShows the last line of the excluded text
LnShows the last n lines of the excluded text
IInsert one line after this line
InInsert n lines after this line
(Shifts the line left 2 columns
(nShifts the line left n columns
(( Shifts the block of lines starting with the first (( command and ending with the second (( command 2 columns to the left
((nShifts the block of lines starting with the first (( command and ending with the second (( command ‘n’ columns to the left
)Shifts the line right 2 columns
)n Shifts the line right ‘n’ columns
))Shifts the block of lines starting with the first )) command and ending with the second )) command 2 columns to the right
))nShifts the block of lines starting with the first )) command and ending with the second )) command ‘n’ columns to the right
<Data shifts the line left 2 columns
<nData shifts the line left n columns
<< Data shifts the block of lines starting with the first << command and ending with the second << command 2 columns to the left
<<nData shifts the block of lines starting with the first << command and ending with the second << command ‘n’ columns to the left
>Data shifts the line right 2 columns
>n Data shifts the line right ‘n’ columns
>>Data shifts the block of lines starting with the first >> command and ending with the second >> command 2 columns to the right
>>nData shifts the block of lines starting with the first >> command and ending with the second >> command ‘n’ columns to the right
COLSDisplays a ruler with individual columns marked
MASKThe MASK line command displays the =MASK> line. On this line, you can type characters that you want to insert into an unformatted data set or member. These characters, which are called the mask, are inserted whenever you use the I (insert), TE (text entry), or TS (text split) line commands, or when you edit an empty data set.
BNDSThe BOUNDS (BNDS) line command displays the boundary definition line
TABSWhen you type TABS in the line command field, =TABS> is displayed along with any previously defined tab positions.
MDThe MD (make dataline) line command converts MSG>, =NOTE=, =COLS>, or (information) lines to data so they can be saved as part of your data set.
MDnConverts ‘n’ number of lines
TEThe TE (text entry) line command provides one very long line wrapped around many lines of the display to allow power typing for text entry. The editor does the formatting for you.
TEnApplies the TE to ‘n’ lines starting at this line
TSSplits the text line at the cursor
TSnSplits the text line at the cursor and inserts ‘n’ lines
TFFlows the text to the end of paragraph which is either a blank line or an indentation
TFnFlows the text using the column number ‘n’ as the right margin
Edit Profile
AUTOSAVE ONAutomatically save changes when using the PF3 key
AUTOSAVE OFFTurns this feature off
AUTOLIST ONGenerates a source listing in the ISPF list data set for eventual printing when you end an edit session in which you changed and saved data
AUTOLIST OFFTurns this feature off
BOUNDS col1 col2Sets the left and right boundaries and saves them in the edit profile. Use BOUNDS or BND.
CANCELCancels (ignores) all the changes and exit. The changes are not saved. Use command CANCEL or CAN
HILITE ONSets program colouring on
HILITE OFFTurns this feature off
HILITE AUTOAllows ISPF to determine the language
HILITE ASMHighlights the data as Assembler
HILITE CHighlights the data as C
HILITE COBOLHighlights the data as Cobol
HILITE HTMLHighlights the data as HTML
HILITE JCLHighlights the data as Job Control Language (JCL)
HILITE PANELHighlights the data as ISPF Panel Language
HILITE PASCALHighlights the data as Pascal
HILITE PLIHighlights the data as PL/I
HILITE REXXHighlights the data as Rexx
HILITE SKELHighlights the data as ISPF Skeleton Language
HILITE SUPERCHighlights the data as SuperC listing
HILITE XMLHighlights the data as XML
PACK ONSaves data in packed format
PACK OFFTurns this feature off
TABS ONTurns tabs mode on, which means that logical tabs can be used to break up strings of data. This is the default operand.
TABS OFFTurns this feature off
PROFILEShows current profile settings. Can use PROFILE or PROF
PROFILE profilenameSwitches to a different profile or creates a new profile
PROFILE LOCKSaves the changes made to the edit profile
STATS ONKeeps automatic statistics
STATS OFFTurns this feature off
Edit Sequence Numbering
AUTONUM ONResequences line numbers when saved
AUTONUM OFFTurns this feature off
NUMBER ON
Turns line numbering on
NUMBER OFF
Turns this feature off.
NUMBER STD
Sets number on STD
NUMBER COBOL
Sets number on COBOL
NUMBER STD COBOL
Sets number on STD and COBOL
RENUM Renumbers the lines starting at 100 and incrementing by 100. RENUM also sets NUMBER ON.
RENUM STD Sets number on STD
RENUM COBOLSets number on COBOL
RENUM STD COBOLSets number on STD and COBOL
UNNUMTurns off number mode and replaces the line numbers with blanks
Edit Display Modes
CAPS ONAutomatically converts all lowercased entered into upper case
CAPS OFFTurns this feature off
HEX ONTurns Hexadecimal display ON
HEX OFFTurns this feature off
NULLS ONTrailing blanks are sent to the screen as null characters
NULLS OFFTurns this feature off
Edit Automatic Recovery
RECOVERY ONKeeps a record of all the changes made during the editing session. Can use RECOVERY or REC
RECOVERY OFFTurns this feature off
UNDOUndoes the last modification done (for this to work RECOVERY must be ON)