ISPF Commands / TSO Commands

                                       About Us        Services        Courses        Case Studies        Mainframe Forum        Mainframe Jobs        Contact Us              Mainframe Connectivity

ISPF Editor Line Command Reference

This is a list of the various commands that can be entered into the field alongside the individual lines of the file that you are editing using the ISPF editor. The field usually contains either ''''' or line numbers. These commands usually act on the data line that is alongside and may also affect adjacent lines if a number is typed alongside. With block commands the command needs to be entered on both the first and last lines to define a block of lines.

Command

Function

Data shift left
shifts a single line of program source code to the left without affecting the program labels or comment ie. 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

A

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

B

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

BNDS

Display bounds above this line
Displays the current boundary positions which can be changed by tying < and > in the new boundary positions that you require.

C

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

CC

Block copy

COLS

Display the column ruler above this line

D

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

DD

Block delete

F

Display 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.

I

Insert a new line after this one
Can be specified with a number to insert multiple lines.

L

Display 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.

LC

Convert all text on this line to lower case
Can be specified with a number to convert more than one line to lower case.

LCC

Block convert to lower case

M

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

MM

Block move

MASK

Display the mask line above this one
The mask defines the default content for inserted lines.

O

Overlay (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.

OO

Block overlay (the lines to be copied/moved are inserted into the block as many times as they will fit)

R

Repeat - create a duplicate of this line
Can be specified with a number to indicate that additional duplicate lines are to be produced.

RR

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

S

Show 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.

TABS

Show the tab settings above this line
Hardware tabs positions are indicated by asterisks (*) and software tabs by hyphens (-) or underscores (_).

TE

Text 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.

TF

Text 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.

TJ

Text Join - merges this line with the following one

TS

Text 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.

UC

Convert all text on this line to upper case
Can be specified with a number to convert multiple lines.

UCC

Block convert to upper case

X

Exclude 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.

XX

Block 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.

 

TSO Command Reference

The following is a list of all of the standard TSO commands and what they do. Most people run ISPF on top of TSO (which is started using the pdf command). To enter TSO commands after the ISPF interface is started, you need to either precede the desired command with tso (eg. 'tso asm') or go into ISPF option 6 and enter the TSO command there. If the ISPF interface is not started or has been shut down then TSO commands can be entered at the READY prompt.

Language Processing Commands:

ASM

invoke assembler prompter and assembler f compiler.

CALC

invoke itf:pl/1 processor for desk calculator mode.

COBOL

invoke cobol prompter and cobol compiler.

FORT

invoke fortran prompter and fortran iv g1 compiler.

PLI

invoke pli optimizing compiler

PLIC

invoke pli checkout compiler

VSAPL

invoke vsapl interpreter for tso

Program Control Commands:

CALL

load and execute the specified load module.

LINK

invoke link prompter and linkage editor.

LOADGO

load and execute program.

RUN

compile, load, and execute program.

TEST

test user program.

Data Management Commands:

ALLOCATE

allocate a data set.

CONVERT

sift itf/pl1 and fortran source.

COPY

copy a data set.

DELETE

delete a data set.

EDIT

create, edit, and/or execute a data set.

FORMAT

format and print a text data set.

FREE

release a data set.

LIST

display a data set.

LISTALC

display active data sets.

LISTBC

display messages from operator/user.

LISTCAT

display user catalogued data sets.

LISTDS

display data set attributes.

MERGE

combine data sets.

PROTECT

password protect data sets.

RENAME

rename a data set.

System Control Commands:

ACCOUNT

modify/add/delete user attributes.

OPERATOR

place terminal in operator mode.

Session Control:

EXEC

invoke command procedure.

HELP

invoke help processor.

LOGOFF

end terminal session.

LOGON

start terminal session.

PROFILE

define user characteristics.

SEND

send message to operator/user.

TERMINAL

define terminal characteristics.

TIME

log session usage time.

WHEN

conditionally execute next command.

Foreground Initiated Background Commands:

CANCEL

cancel background job.

OUTPUT

direct output medium for background job.

STATUS

list status of background job.

SUBMIT

submit background job.

Access Method Service Commands:

ALTER

alter attributes in catalog entries.

CNVTCAT

entries in an os catalog are converted to entries in an existing vs2 master or user catalog.

DEFINE

define user catalogs,data spaces, clusters, page spaces, nonvsam datasets, alias names, and generation data groups.

EXPORT

move a cluster or user catalog entry from the system in which the command is executed.

IMPORT

move a cluster or user catalog entry into the system in which the command is executed.

PRINT

list all or part of an indexed sequential, sequential, or vsam dataset.

REPRO

copy vsam clusters, catalogs, and nonvsam datasets.

VERIFY

verify end of file.

 

Comments