Sie sind auf Seite 1von 71

TSO Editor

TSO Editor
When an edit session opened for an existing dataset TSO copies the dataset into the Users work space When the edit session is closed the edited version of the dataset is : Written

back to the library containing the dataset or Used to overwrite the old copy of the sequential dataset

Note when editing library members the old versions are not overwritten or deleted at the end of the edit session (nor can they be seen) - this can result in the library filling up and a B37 return code when you try to save the new version of an edited member To free the space compress the dataset - this will remove all the old versions of edited members

TSO Editor (Profile)


The edit profile captures the edit options last in effect for the dataset type (or language type in Panvalet) The current profile settings can be seen by typing PROFILE (or just PROF) on the COMMAND line Some of the options captured in the profile are : RECOVERY

ON/OFF

Determines whether the UNDO command will function during an edit session and also enables the system to recover your edit up to the last interaction (i.e. use of a PF key or the ENTER key) in the event of a system crash or session timeout

NUMBER

ON/OFF
ON/OFF

STD

COBOL

DISPLAY

Determines whether the system will store line numbers for the file and what type of line numbers it will store standard or COBOL or both Determines whether lower case characters will be automatically translated into upper case characters

CAPS

TSO Editor (Profile)


HEX

ON/OFF ON/OFF

VERT/DATA STD/ALL

Determines whether the hexadecimal value of every character is displayed or not Determines whether the spaces after the last character in a line are filled with space characters or nulls - nulls allow you to insert new data on the line without first having to delete space characters

NULLS

TABS

ON/OFF
ON/OFF

STD/ALL

Determines whether tab stops are available during editing or not - tab stop positions can be defined by using the TABS line command Determines whether the dataset will be automatically saved when the END or RETURN commands are issued at the end of an editing session

AUTOSAVE

AUTONUM

ON/OFF

determines whether the dataset will be automatically renumbered at the end of the edit session

TSO Editor (Profile)


AUTOLIST

ON/OFF ON/OFF

Determines whether the dataset will be automatically printed at the end of the edit session Determines whether statistics will be kept for the dataset and displayed when the member is displayed as one of the entries in a Member Selection List panel

STATS

PROFILE

UNLOCK/LOCK
NONE/Macro-name ON/OFF

Determines whether the profile for this member is unlocked or locked - if it is locked any changes made while editing will not be saved Defines a macro that will performed whenever the dataset is opened for editing Determines whether the dataset is written to the disk in ordinary or packed mode - packed mode save DASD space by removing strings of repeating characters

IMACRO

PACK

TSO Editor (Profile)


To amend the profile settings you can type the following commands on the COMMAND line at the top of the panel
RECOVERY

RECOVERY ON RECOVERY OFF

NUMBER

(or NUM)
Turns numbering on Turns on standard numbering Turns on COBOL numbering Turns on standard and COBOL numbering Turns numbering off

NUMBER NUMBER STD NUMBER COBOL NUMBER STD COBOL

NUMBER OFF

CAPS

CAPS ON CAPS OFF

TSO Editor (Profile)


HEX

HEX HEX VERT

HEX DATA HEX OFF

Turns hexadecimal on in system default mode (VERT mode for us) Turns hexadecimal on in vertical mode (i.e. the two hexadecimal characters are one on top of the other under the text character) Turns hexadecimal on in data mode (i.e. the two hexadecimal characters are side by side) Turns hexadecimal off

NULLS

NULLS
NULLS ALL

NULLS OFF

Turns nulls on for all but one space after last non-space character on a line Turns nulls on for all spaces after last non-space character on a line Turns nulls off

TSO Editor (Profile)


TABS

TABS TABS ALL TABS ?

TABS OFF AUTOSAVE

Turns standard tabbing on Turns hardware tabbing on Turns logical tabbing on with ? as the field separator Turns tabbing off END command automatically saves any changes made Same as above END command results in a prompt asking you whether or not to save any changes made Same as above END command acts like CANCEL command

AUTOSAVE

AUTOSAVE ON AUTOSAVE OFF

AUTOSAVE OFF PROMPT AUTOSAVE OFF NOPROMPT

TSO Editor (Profile)


AUTONUM

AUTONUM AUTONUM OFF

AUTOLIST

AUTOLIST AUTOLIST OFF

STATS

STATS STATS OFF

PROFILE

(or PROF)
Displays the profile lines Locks the profile for current dataset Unlocks the profile for the current dataset

PROFILE PROFILE LOCK

PROFILE UNLOCK

TSO Editor (Profile)


IMACRO

IMACRO AAAA IMACRO !AAAA IMACRO NONE

Defines AAAA as am initial macro for dataset Defines AAAA as an initial program macro for dataset Turns IMACRO off

PACK

PACK PACK OFF

Explanations have only been given where multiple options are available

TSO Editor (Primary Cmds)


Primary commands are those that you type on the COMMAND line at the top of the panel Profile commands which have been dealt with earlier are also considered to be primary commands The commands you will use most are FIND, CHANGE, COPY, CREATE, REPLACE, SAVE, SUBMIT and UNDO - these will be explained in detail Other commands will only be mentioned in brief - for more details of them use the ISPF tutorial or the ISPF HELP facility (on the PF1 key - unless you have amended the settings of your PF keys to move it to another key)

TSO Editor (Primary Cmds)


FIND or F (Can also be used in View or Browse)
FIND

AAAA A = B

Issues a search for the next occurrence of the text AAAA in the current dataset

FIND

Searches for the next occurrence of the string A = B A string containing blank, apostrophe, comma or quote characters or a character that could be interpreted as a FIND keyword parameter (e.g. all or *) or a column indicator must be enclosed in quotes
FIND

A = B

Same as above You can enclose the string in either or so that you can search for a string containing either or

TSO Editor (Primary Cmds)


FIND

* X 9 AAAA 40 60

Issues a new search using the pattern from the previous search Searches for the next record in the dataset that has X in column 9 Searches for the next occurrence in the dataset of the string AAAA anywhere between columns 40 and 60

FIND

FIND

FIND

X0000 or FIND 0000X or FIND X0000 or FIND 0000X


Searches the next hexadecimal string 0000 The string must : Contain an even number of characters

Contain only valid hexadecimal characters

TSO Editor (Primary Cmds)


FIND

P? or FIND ?P (where ? Is one of the characters listed below)


Searches for a string containing one or more picture (i.e. wildcard) characters - valid wildcard characters are := @

#
$ .

< >

Any character Alphabetic character Numeric character Special character Non-blank character Invalid character Non-numeric character Lower case alphabetics Upper case alphabetics

The string can be any combination of normal and wildcard characters

TSO Editor (Primary Cmds)


FIND

Tan

Searches the next occurrence of the text string regardless of the case used in the dataset (e.g. the above search will find AN or an or An)

FIND

CAn

Searches for the next occurrence of the string exactly as specified

FIND

AAAA .S .E

Searches for the next occurrence of the string AAAA between a range of lines delimited by two user defined or system labels .S and .E - for user definition of labels see Line Commands System labels available are : .ZCSR .ZFIRST (.ZF)

.ZLAST (.ZL)

Current cursor position First line of dataset Last line of dataset

TSO Editor (Primary Cmds)


FIND

AAAA FIRST or FIND FIRST AAAA

Searches for the first occurrence of the string AAAA

FIND

AAAA LAST or FIND LAST AAAA

Searches for the last occurrence of the string AAAA

FIND

AAAA PREV or FIND PREV AAAA

Searches for the previous occurrence of the string AAAA

FIND

AAAA ALL or FIND ALL AAAA AAAA NEXT or FIND NEXT AAAA

Searches for all occurrences of the string AAAA

FIND

Searches for the next occurrence of the string AAAA Not really required as this is the default

TSO Editor (Primary Cmds)


FIND

AAAA PREFIX or FIND PREFIX AAAA

Searches for character strings that are prefixed with the string AAAA

FIND

AAAA SUFFIX or FIND SUFFIX AAAA

Searches for character strings that are suffixed with the string AAAA

FIND

AAAA WORD or FIND WORD AAAA

Searches for words (i.e. character strings delimited by non-alphanumeric characters) that match the search string

FIND

AAAA CHARS or FIND CHARS AAAA

Searches for the character string AAAA Not really needed as this is the default

TSO Editor (Primary Cmds)


FIND

AAAA X or FIND AAAA EX or FIND X AAAA or FIND EX AAAA

Searches for the character string AAAA only on those lines which have been excluded (i.e. not displayed) For how to exclude lines see Line Commands
FIND

AAAA NX or FIND NX AAAA

Searches for the the character string AAAA only on those lines that have not been excluded

The various parameters of the FIND command can be entered in any sequence however the left and right column boundaries for the search (if used) must appear be given together and in the correct sequence The parameters can be separated by a comma

TSO Editor (Primary Cmds)


CHANGE or C (Can also be used in View)
The

rules for defining the from and to strings are the same as the rules for defining the string in the FIND command CHANGE AAAA BBBB

Changes the next occurrence of the string AAAA (i.e. the from string) to BBBB (i.e. the to string)

CHANGE

A = C = or CHANGE A = C = or CHANGE A = C = or CHANGE A = C =


Changes the next occurrence of the string A = to C = As shown above one string can be in single quotes and the other can be in double quotes You can also specify one string with quotes and the other without quotes as long as the string without quotes is a valid string without quotes

TSO Editor (Primary Cmds)


CHANGE

CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE

XC1 XC2 C1X XC2 XC1 C2X C1X C2X XC1 XC2 C1X XC2 XC1 C2X C1X C2X XC1 B C1X B A XC2 A C2X A B

or or or or or or or or or or or or

CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE CHANGE

XC1 XC2 C1X XC2 XC1 C2X C1X C2X XC1 XC2 C1X XC2 XC1 C2X C1X C2X XC1 B C1X B A XC2 A C2X

or or or or or or or or or or or or

All the above variations do the same thing change the next occurrence of A to B

TSO Editor (Primary Cmds)


CHANGE

* BBBB

Changes the next occurrence of the from string used in the previous CHANGE command to BBBB

CHANGE

AAAA *

Changes the next occurrence of AAAA to the to string used in the previous CHANGE command

CHANGE

* *
Taaaa BBBB

Effectively repeats the previous CHANGE command Changes any four A characters regardless of their case (e.g. aaaa or AAAA or Aaaa or aaaA or AaaA or aAAa or etc.) to BBBB

CHANGE

CHANGE

C AaaA BBBB

Only changes four A characters to BBBB if they match the from string exactly i.e. AaaA

TSO Editor (Primary Cmds)


CHANGE

P? B or CHANGE A P or CHANGE P? P

The picture (i.e. P) string is used to enable the specifying of picture or wildcard characters In the from string the ? represents

= @ # $ . < >

Any character Alphabetic character Numeric character Special character Non-blank character Invalid character Non-numeric character Lower case alphabetics Upper case alphabetics Any character Lower case alphabetics Upper case alphabetics

In the to string the represents


= < >

The from and to strings can be made up of any combination of normal and wildcard characters

TSO Editor (Primary Cmds)


CHANGE

AAAA BBBB FIRST or CHANGE FIRST AAAA BBBB


Changes the first occurrence of the string AAAA to BBBB

CHANGE

AAAA BBBB LAST or CHANGE LAST AAAA BBBB


Changes the last occurrence of the string AAAA to BBBB

CHANGE

AAAA BBBB PREV or CHANGE PREV AAAA BBBB


Changes the previous occurrence of the string AAAA to BBBB

CHANGE

AAAA BBBB ALL or CHANGE ALL AAAA BBBB


Changes all occurrences of the string AAAA to BBBB

TSO Editor (Primary Cmds)


CHANGE

AAAA BBBB NEXT or CHANGE NEXT AAAA BBBB

Changes the next occurrence of the string AAAA to BBBB Not really required as this is the default
CHANGE

AAAA BBBB X or CHANGE AAAA BBBB EX or CHANGE X AAAA BBBB or CHANGE EX AAAA BBBB
Changes the character string AAAA to BBBB only on those lines which have been excluded (i.e. not displayed) For how to exclude lines see Line Commands

CHANGE

AAAA BBBB NX or CHANGE NX AAAA BBBB

Changes the the character string AAAA to BBBB only on those lines that have not been excluded

TSO Editor (Primary Cmds)


CHANGE

AAAA BBBB PREFIX or CHANGE PREFIX AAAA BBBB


Changes the character string prefix AAAA to BBBB

CHANGE

AAAA BBBB SUFFIX or CHANGE SUFFIX AAAA BBBB


Changes the character string suffix AAAA to BBBB

CHANGE

AAAA BBBB WORD or CHANGE WORD AAAA BBBB


Changes words (i.e. character strings delimited by non-alphanumeric characters) AAAA to BBBB

CHANGE

AAAA BBBB CHARS or CHANGE CHARS AAAA BBBB

Changes the character string AAAA to BBBB Not really needed as this is the default

TSO Editor (Primary Cmds)


CHANGE

AAAA BBBB .S .E

Changes the next occurrence of the string AAAA to BBBB between a range of lines delimited by two user defined or system labels .S and .E - for user definition of labels see Line Commands System labels available are : .ZCSR

.ZFIRST (.ZF)
.ZLAST (.ZL)

Current cursor position First line of dataset Last line of dataset

CHANGE

A B 9

Changes the next occurrence of A in column 9 to B

CHANGE

AAAA BBBB 40 60

Changes the next occurrence of the string AAAA anywhere between columns 40 and 60 to BBBB

TSO Editor (Primary Cmds)


The various parameters of the CHANGE command can be entered in any sequence however : The

to and from strings must appear be given together and in the correct sequence The left and right column boundaries for the search (if used) must appear be given together and in the correct sequence

The parameters can be separated by a comma All lines changed by a CHANGE ALL command will be marked with ==CHG> in the numbers column on the screen If a CHANGE ALL command failed to make a change for some reason (e.g. insufficient space on the line) the line will be marked with ==ERR> in the numbers column on the screen

TSO Editor (Primary Cmds)


COPY
This

command is used to copy data from an external dataset into the current dataset You must specify the location at which the external data is to be inserted by either :Using the AFTER or BEFORE parameters with a label (see Line Commands for how to define labels) or Using the A (after) or B (before) line commands

COPY

or COPY AFTER .S or COPY BEFORE .S

If no dataset is specified as part of the COPY command a panel is displayed where you can enter the details of the dataset to be copied The dataset can be either : A member in the same library A member in another library (fully qualified and

enclosed in quotes if its not your library) A sequential dataset (fully qualified and enclosed in quotes if its not your dataset)

TSO Editor (Primary Cmds)


COPY

XXXX or COPY XXXX AFTER .S or COPY XXXX BEFORE .S

If XXXX is the name of a member in the same library as the dataset being edited the entire contents of member XXXX are copied at the indicated point If XXXX is a sequential dataset owned by you it will be copied at the indicated point If XXXX is a library name a Member Selection List panel will be displayed listing all the members in the library - typing S by a desired member name and pressing the ENTER key will cause the selected member to be copied at the indicated point The point at which the file should be copied is indicated by the A or B line command or by the .S label

TSO Editor (Primary Cmds)


COPY

Libname(XXXX) or COPY Libname(XXXX) AFTER .S or COPY Libname(XXXX) BEFORE .S


Here XXXX is a member in another library belonging to you

COPY

Userid.Libname(XXXX) or COPY Userid.Libname(XXXX) AFTER .S or COPY Userid.Libname(XXXX) BEFORE .S


Here XXXX is a member in another library that does not belonging to you

COPY

Userid.XXXX or COPY Userid.XXXX AFTER .S or COPY Userid.XXXX BEFORE .S


Here XXXX is a sequential dataset that does not belonging to you

TSO Editor (Primary Cmds)


To

specify that only certain lines from the source dataset are copied in to the target dataset you can specified start and end line numbers - these are inclusive COPY (XXXX) 10 100 or COPY (XXXX) 10 100 AFTER .S or COPY (XXXX) 10 100 BEFORE .S
This will copy lines 10 to 100 from the source dataset into the target dataset (i.e. the file currently being edited) The source dataset is a member in the same library as the target dataset Note that if a number range is specified the source dataset name must be enclosed in brackets even if it is in the same library as the target dataset The screen displayed when no member name is specified will also have a place for entering the line number range to be copied (if required)

TSO Editor (Primary Cmds)


COPY

Libname 10 100 or COPY Libname 10 100 AFTER .S or COPY Libname 10 100 BEFORE .S

Here a library name but no member name has been specified This will result in the display of the display of a Member Selection List panel Selection of a member by entering S against the name and pressing the ENTER key will result in lines 10 100 of that member being copied into the target dataset

TSO Editor (Primary Cmds)

TSO Editor (Primary Cmds)

This panel is used to specify the dataset/library where the data should be copied from

TSO Editor (Primary Cmds)

Specify the dataset or library name here

TSO Editor (Primary Cmds)

You can specify up to four second level library name qualifiers here - the four libraries will be searched in the sequence they are specified for the given member name

TSO Editor (Primary Cmds)

The member name can be left blank or you can enter a full member name or a partial member name followed by an *

TSO Editor (Primary Cmds)

A blank member name will result in the display of a Member Selection List panel if the 3 top level qualifiers given (i.e. Project/Group/Type ) identify a library

TSO Editor (Primary Cmds)

A partial member name will also result in the display of a Member Selection List panel

TSO Editor (Primary Cmds)

Or you can specify the dataset name here - dont forget if the dataset is not yours it must be fully qualified and enclosed in inverted commas - the member name must be enclosed in brackets after the library name

TSO Editor (Primary Cmds)

You only need to give an entry here if the dataset is not catalogued

TSO Editor (Primary Cmds)

Enter the password here if the dataset is password protected

TSO Editor (Primary Cmds)

Enter here the number of the first line to be copied

TSO Editor (Primary Cmds)

Enter here the number of the last line to be copied

TSO Editor (Primary Cmds)

Enter here the type of line numbering to be used when determining which lines to copy

TSO Editor (Primary Cmds)

Press the ENTER key when all the required data has been entered - this will either result in the copy being executed or the display of a Member Selection List panel

TSO Editor (Primary Cmds)


CREATE (or CRE)
This

command is used to create a new dataset using lines either copied or moved from the dataset currently being edited To identify the lines to be copied or moved to the new dataset you use either :The C (Copy) line command The CC (Copy Block) line command The M (Move) line command The MM (Move Block) line command

If

either of the copy commands are used the new dataset is created using copies of the selected lines If either of the move commands are used the new dataset is created by moving the selected lines from the current dataset to the new dataset (NB - the lines are deleted from the current dataset)

TSO Editor (Primary Cmds)


CREATE

XXXX or CREATE (XXXX)

Creates a new member XXXX in the same library as the member from which the lines are being copied/moved

CREATE

Libname(XXXX)

Creates a new member XXXX in the Libname library which is under your user-id

CREATE

Userid.Libname(XXXX)

Creates a new member XXXX in the Userid.Libname library which is not under your user-id

CREATE

Userid.XXXX

Creates a new sequential dataset XXXX under user id Userid which could be yours or someone else's

TSO Editor (Primary Cmds)


REPLACE (or REPL)
This

command is used to replace an existing dataset using lines either copied or moved from the dataset currently being edited To identify the lines to be copied or moved to the new dataset you use either :The C (Copy) line command The CC (Copy Block) line command The M (Move) line command The MM (Move Block) line command

If

either of the copy commands are used the dataset is replaced using copies of the selected lines If either of the move commands are used the dataset is replaced by moving the selected lines from the current dataset to the dataset being overwritten (NB - the lines are deleted from the current dataset)

TSO Editor (Primary Cmds)


REPLACE

XXXX or REPLACE (XXXX)

Replaces member XXXX in the same library as the member from which the lines are being copied/moved

REPLACE

Libname(XXXX)

Replaces member XXXX in the Libname library which is under your user-id

REPLACE

Userid.Libname(XXXX)

Replaces member XXXX in the Userid.Libname library which is not under your user-id

REPLACE

Userid.XXXX

Replaces sequential dataset XXXX under user id Userid which could be yours or someone else's

TSO Editor (Primary Cmds)


SAVE
Causes

all the changes made up to the point the SAVE was issued to be written back into the source dataset

CANCEL
Ends

the current edit session without saving the changes that have been made If the option on the front screen is set a panel asking you to confirm the cancellation may be displayed

END
Ends

the current edit session If the AUTOSAVE profile option is set to ON any changes made will be automatically saved - otherwise you will be prompted to save the changes before issuing the END command

TSO Editor (Primary Cmds)


SUBMIT (or SUB)
Used

to submit the contents of the dataset for processing as a background job - to do this it invokes the TSO SUBMIT command An data beyond the 80th character is ignored An lines less than 80 characters in length are padded with spaces The normally system assumes that the first line of the dataset contains the identifying information for the job (i.e. the JOB card) You can supply the identity of two labels as the start and end points of the data to be submitted for background processing (e.g. SUBMIT .S .E where .S is the start label and .E is the end label)

TSO Editor (Primary Cmds)


UNDO
Reverses

the most recent changes you have made back to when a PF key or the ENTER key was last pressed
Generally this means that only the last edit can be rolled back - only if several edit commands were chained together can more than one edit command be rolled back

Only

works if the RECOVERY profile parameter has been set to ON or SETUNDO STD or SETUNDO REC commands have been issued The UNDO must be the only command entered on the command line

TSO Editor (Primary Cmds)


LOCATE (or L)
Moves

you to a specified line number or label within the dataset the edit display by :-

RESET (or RES)


Resets

Removing labels, Removing pending line commands (e.g. M, MM, C, CC, D, DD, etc.), Removing FIND highlights, Removing CHANGE ALL change flags, Removing CHANGE ALL error flags, Redisplaying excluded lines and Removing special lines such as profile lines, COL lines, TAB lines, etc.
Each

of these items can be reset individually or all at once (except labels) or in any combination Labels can be used to limit the lines affected by the reset

TSO Editor (Primary Cmds)


FLIP
Reverses

the current line exclusions Labels can be used to limit the range of line affected

COMPARE
Compares

the current dataset to another dataset

EXCLUDE
Excludes

certain lines from being displayed Uses a string for selecting the lines to be excluded like the FIND command The exclusion can be reversed by a RESET command or a FIND command with the same string as that used on the EXCLUDE command

RENUM
Renumbers

the lines in the current dataset

TSO Editor (Primary Cmds)


UNNUM
Removes

the numbering from the current dataset

MODEL
Copies

into the current dataset some standard predefined code from a model dataset whether notes (i.e. comments) associated with a model are copied when the code from the model is copied the columns within a line that are affected by editing commands

NOTE
Determines

BOUNDS (or BNDS or BND)


Defines

HILITE
Modifies

the colour options in effect within the editor

TSO Editor (Primary Cmds)


VERSION
Used Used

to change the version number of a dataset to change the modification level number of the dataset

LEVEL
MOVE
Similar

to the COPY command except than the source dataset is deleted or in the case where only certain lines are moved those lines will be deleted from the source dataset

CUT
Copies

(use line commands C or CC) or moves (use line commands M or MM) lines to a clipboard store area for later retrieval using the PASTE command Unless REPLACE parameter is used new lines are added to any existing lines on the clipboard store area The DISPLAY parameter displays the clipboard contents

TSO Editor (Primary Cmds)


PASTE
Copies

data from the clipboard store area into the current

dataset

DEFINE
Establishes

alias (i.e. alternative names) for commands Intended primarily for use with edit macros

RMACRO
Defines

the name of a macro that will be used for error recovery on this dataset in the case of a system failure or system timeout during the edit session you to use the original name of a command even if you have defined a macro with that command name

BUILTIN
Allows

TSO Editor (Primary Cmds)


DELETE (or DEL)
Enables

you to delete all lines between two labels (including the label lines) You can also specify whether only excluded or non-excluded lines should be deleted

SORT
Enables

you to sort the contents of the file in either ascending or descending order based on specified columns you to have nested edit sessions (i.e. enables you to start an edit session on dataset B while editing dataset A)

EDIT
Enables

TSO Editor (Line Cmds)


A line command is an edit command that is entered directly on the line to be processed - this is done by overtyping the sequence number that starts the line Some line commands have only a single form Others can take two, three or four forms:Z

Processes a single line Znnnnn Processes nnnnn lines (where nnnnn is a number between 2 and 99999) ZZ / ZZ Processes a block of lines when entered on the lines at the start and end of the block to be processed ZZnnnn / ZZ Performs the block process nnnn times (where nnnn is a number between 2 and 9999) - the nnnn must be given at the start of the block only

TSO Editor (Line Cmds)


I or Innnnn
to insert one blank line or insert nnnnn blank lines If nothing (not even a space) is entered on the inserted blank line and the ENTER key is pressed then the line is removed Each inserted line is initialised with a mask (i.e. default layout) that can be edited by using the MASK command If data has been entered on the last inserted line and the cursor is on this last line when the ENTER key is pressed one more line will be automatically inserted
Used

D or Dnnnnn or DD / DD
Used

to delete one line or delete nnnnn lines or delete a block of lines


to repeat a line once or repeat a line nnnnn times or repeat a block of lines or repeat a block of lines nnnn times

R or Rnnnnn or RR / RR or RRnnnn / RR
Used

TSO Editor (Line Cmds)


C or Cnnnnn or CC / CC
to copy one line or copy nnnnn lines or copy a block of lines Used in conjunction with either : Used

The A, B or O line commands (which indicate the destination within the current dataset of the copies of the lines) or The CREATE or REPLACE primary commands (which indicate the external dataset that is the destination of the copies of the lines)

M or Mnnnnn or MM / MM
to move one line or move nnnnn lines or move a block of lines Used in conjunction with either : Used

The A, B or O line commands (which indicate the destination within the current dataset of the moved lines) or The CREATE or REPLACE primary commands (which indicate the external dataset that is the destination of the moved lines) - note that the lines are deleted from the current dataset

TSO Editor (Line Cmds)


A or Annnnn
Indicates

the line after which copied or moved lines are

placed If a number is given the copied or moved lines will be repeated that number of times

B or Bnnnnn
Indicates

the line before which copied or moved lines are

placed If a number is given the copied or moved lines will be repeated that number of times

O or Onnnnn or OO / OO
Used

to overlay the blank characters in the indicated lines with the data from copied or moved lines The overlay is done character by character If the area to be overlaid is bigger than the source area the source area will be repeated until the overlaid area is full

TSO Editor (Line Cmds)


) or )nnnnn or )) / )) or ))nnnn / ))
Indicates

that the identified line should be shifted right The default number of columns by which the indicated lines are shifted right when ) or )) / )) is specified is 2 Any characters that would exceed the right boundary of the line after execution of the shift right command are truncated and lost Multiple spaces are preserved

( or (nnnnn or (( / (( or ((nnnn / ((
Indicates

that the identified line should be shifted left The default number of columns by which the indicated lines are shifted left when ( or (( / (( is specified is 2 Any characters that would exceed the left boundary of the line after execution of the shift left command are truncated and lost Multiple spaces are preserved

TSO Editor (Line Cmds)


> or >nnnnn or >> / >> or >>nnnn / >>
Indicates

that the identified line should be shifted right The default number of columns by which the indicated lines are shifted right when > or >> / >> is specified is 2 If any characters would exceed the right boundary of the line after execution of the shift right command an error message is output Multiple spaces are not preserved

< or <nnnnn or << / << or <<nnnn / <<


Indicates

that the identified line should be shifted left The default number of columns by which the indicated lines are shifted left when < or << / << is specified is 2 If any characters would exceed the left boundary of the line after execution of the shift left command an error message is output Multiple spaces are not preserved

TSO Editor (Line Cmds)


X or Xnnnnn or XX / XX
Used Used

to exclude from display the specified lines

F or Fnnnnn
to redisplay the first line or first nnnnn lines of a block of excluded lines

L or Lnnnnn
Used

to redisplay the last line or last nnnnn lines of a block of excluded lines

S or Snnnnn
to redisplay a line or nnnnn lines of a block of excluded lines The lines redisplayed are those with their first non-space characters furthest to the left If the value of nnnnn exceeds the number of lines in the excluded block then all the lines in the block are redisplayed
Used

TSO Editor (Line Cmds)


TE
Allows

bulk entry of text The cursor will be placed at the start of a new blank line following the line on which the command was entered You can then type without having to worry about line end, etc. - use UP and DOWN to enter more text Text is fully reformatted when the ENTER key is pressed

TS or TSnnnn
The

text split command causes the text of the line to be split at the point within the line where the cursor is positioned One or more blank lines are inserted between the fist and second parts of the text - the value of nnnn determines the number of blank lines - if nnnn is omitted 1 is the default The second part of the text is placed at the beginning of a new line below the inserted blank line

TSO Editor (Line Cmds)


TF or TFnnnn
The

text flow command causes empty space at the end of a line to be filled with text from the following line The flow is only stopped when :A blank line is reached or The line indentation changes

If

an nnnn value is given it specifies the right most column up to which the text can extend after the flow has been completed If the text on a line exceed the specified right most column the excess text is flowed to the next line Words (i.e. strings of characters separated by a space) are not split over lines Sentences are ended by ., :, ?, !, ., ?, !, .), ?) and !) and are separated by two spaces after the processing

TSO Editor (Line Cmds)


LC or LCnnnn
Use

the lower case command to convert one or more lines of text to lower case the upper case command to convert one or more lines of text to upper case the make data line command to convert a temporary line into a data line

UC or UCC / UCC
Use

MD or MDnnnn or MDD / MDD or MDMD / MDMD


Use

BNDS or BND
Use

the bounds command to display and if required reposition the current bounds settings The line displayed can be removed by typing D against the line and pressing the ENTER key of using the RESET primary command

TSO Editor (Line Cmds)


COLS
Use

the columns command to display a line showing the column numbers The line displayed can be removed by typing D against the line and pressing the ENTER key of using the RESET primary command

TABS
Use

the tabs command to display and if required reposition the current tabs settings The line displayed can be removed by typing D against the line and pressing the ENTER key of using the RESET primary command

TSO Editor (Line Cmds)


MASK
Use

the mask command to display and edit the mask used to format newly inserted lines The line displayed can be removed by typing D against the line and pressing the ENTER key of using the RESET primary command

LABELS
Labels

are defined by overtyping the line sequence numbers at the left of the screen with a full-stop followed by from one to five alphabetic characters Label names starting with .Z are reserved for system use Labels can be removed by overtyping them with spaces or by using the RESET primary command Overtyping the label with a line command is acceptable and will not remove the label Labels can be moved by re-typing the name on another line

Das könnte Ihnen auch gefallen