Beruflich Dokumente
Kultur Dokumente
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
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
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
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
NUMBER
(or NUM)
Turns numbering on Turns on standard numbering Turns on COBOL numbering Turns on standard and COBOL numbering Turns numbering off
NUMBER OFF
CAPS
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
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
AUTOLIST
STATS
PROFILE
(or PROF)
Displays the profile lines Locks the profile for current dataset Unlocks the profile for the current dataset
PROFILE UNLOCK
Defines AAAA as am initial macro for dataset Defines AAAA as an initial program macro for dataset Turns IMACRO off
PACK
Explanations have only been given where multiple options are available
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
* 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
#
$ .
< >
Any character Alphabetic character Numeric character Special character Non-blank character Invalid character Non-numeric character Lower case alphabetics Upper case alphabetics
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
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)
FIND
FIND
FIND
AAAA ALL or FIND ALL AAAA AAAA NEXT or FIND NEXT AAAA
FIND
Searches for the next occurrence of the string AAAA Not really required as this is the default
Searches for character strings that are prefixed with the string AAAA
FIND
Searches for character strings that are suffixed with the string AAAA
FIND
Searches for words (i.e. character strings delimited by non-alphanumeric characters) that match the search string
FIND
Searches for the character string AAAA Not really needed as this is the default
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
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
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
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
* 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
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
The from and to strings can be made up of any combination of normal and wildcard characters
CHANGE
CHANGE
CHANGE
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
Changes the the character string AAAA to BBBB only on those lines that have not been excluded
CHANGE
CHANGE
CHANGE
Changes the character string AAAA to BBBB Not really needed as this is the default
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)
CHANGE
A B 9
CHANGE
AAAA BBBB 40 60
Changes the next occurrence of the string AAAA anywhere between columns 40 and 60 to BBBB
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
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
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)
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
COPY
COPY
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)
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
This panel is used to specify the dataset/library where the data should be copied from
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
The member name can be left blank or you can enter a full member name or a partial member name followed by an *
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
A partial member name will also result in the display of a Member Selection List panel
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
You only need to give an entry here if the dataset is not catalogued
Enter here the type of line numbering to be used when determining which lines to copy
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
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)
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
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)
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
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
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)
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
you to a specified line number or label within the dataset the edit display by :-
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
the current line exclusions Labels can be used to limit the range of line affected
COMPARE
Compares
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
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
HILITE
Modifies
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
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
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
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
D or Dnnnnn or DD / DD
Used
R or Rnnnnn or RR / RR or RRnnnn / RR
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
placed If a number is given the copied or moved lines will be repeated that number of times
B or Bnnnnn
Indicates
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
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
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
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
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
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
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
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
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
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
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