Sie sind auf Seite 1von 193

TSO/ISPF ASSISTANT

Enter your Password

Enter your new password here

Note:-

Password should be maximum 8 characters.

Press enter key to proceed further when you encounter 3 asterisk symbol

Enter the commands here. Choose the options from down below or type in TSO/ISPF commands

Some commands for screen navigation


Enter: After typing a command at the prompt ENTER key has to be pressed to execute the command F3: To go back to the previous screen =X: To go to the main menu (START command can also be used for the same purpose)

To display functional keys

Key help is shown due to PF show on

To remove the display of functional keys.

The functional key help is switched off

Steps to allocate a dataset (file)


There can be a maximum of 5 qualifiers (max 44 characters), separated by 4 dots. Each qualifier can be a maximum of 8 characters, with the initial character of each qualifier being a character or a national symbol.
The following slides demonstrates the allocation of a file (BOTH PDS (library) and Sequential file)

P is one of the option from the menu below for Program Development Facility

Option for creating or editing the data source

Option 2 from this menu to allocate a data set

Enter the data set name here the first qualifier should be your mainframe id

First time when you allocate a PDS everything will be blank. Leave SMS to give the default values up to data class option

This is space is physically of extentsat there are This allocated in termsdata set and 0 PS allocated 15 extents.of allocation of the data set the time Each extent is allocated when ever the Non zero The values this can take: PDS data exceeds the already allocated space. E.G: If 5 DB are allocated then you can accommodate FB: Fixed Block Logical Record Length 25 Variable within Block Size should be the PDS @ 5 members/unit VB:members Block exact multiple of the This is record length an optional entry.

Now we allocate a physical sequential file (PS)

Directory blocks will be zero for physical sequential file You can leave blank or enter PS here

Editing a member of a PDS


The following slides demonstrates the various edit commands.
Edit RESet Copy

Type the name of the member which you want to Edit (it could be a new member also)

This is the area where the TEXT is written

The line numbers are displayed in this area

RESet clears the display of informational messages and any unprocessed line commands

To insert a line

Has inserted one line

To insert 10 lines

Has inserted 10 lines

To Display the column numbers

Scale is being displayed

Start entering your text (or code) in this area.

To save the text

Split and swap


These are the primary commands. Split is associated with F2 and Swap is associated with F9. This facility enables us to work with two screens. The next slides demonstrates the usage of these keys.

Splits the screen into two thus giving additional screen to work with. Place the cursor at a convenient line and press F2 function key and Press F9 will be split on that screen function key to swap to the other screen line.

p.3.4 takes you to data set list utility menu

To find a particular string in the list

To Browse the members in PDS

To Browse the contents of the member

Press F9 to swap between the two screens

CANCEL Command
This command is used to cancel the changes made to the text in a PS or member of a PDS

The text in line one has been changed. If the changes are not to be saved then CANCEL command can be used.

Note that the changes are not saved.

Copy, After and Before commands


Copy (C , CC ): is used to copy a line or a Block of lines Move: Used to move a line or a Block of lines After(A,a): Used to paste a line or block of lines that has been identified (or moved).( Copy and After go together) Before(B,b): Used to paste copied (or moved) lines after a particular lines Delete: Used to delete a line or a Block of lines

In this example the second line has to be copied after the third line. Hence C is written the line area of the second line and A in the third line.

Note the commands to copy the 5th line BEFORE the 6th line

To delete a line enter D in the line area of that line

Line is deleted

To copy more than 1 line serially write C followed by the number in the line area. E.G note the command to copy 4 lines starting from the second line

To delete a block of lines, dd should be given in the first and last line of the block

Block of line are deleted

It has copied after

Command to move a block of data laterally by required number of columns

The block command set ))07 )) moves the entire block by 7 columns to the right

The block will be moved by 3 columns to the left

Similarly use << and >> commands and not the difference between the two

Move Command

To move a line or series of lines M has to be specified. To select a block MM has to be specified in the first and last line of the block

Repeat command

To repeat a line, then R has to be specified for that line. E.g: Note the command to repeat the last line 4 times

Exclude command

Excluding and redisplaying source lines


X Xn XX S Sn F Fn L Ln Exclude this line. Exclude n lines starting with this line. Exclude a block of lines . Show one line of the excluded text. Show n lines. Show the first line of the excluded text. Show the first n lines. Show the last line of the excluded text. Show the last n lines.

To exclude line(s) from being displayed

The 4 lines are hid from being displayed

To Show the hidden lines S has to be typed in the line area. To display one line, S1 is typed.

Note the display of the one hidden line.

The command F displays the First hidden line

Note the display of the first line that was excluded from display

To display the Last lines type L in the line area.

Note the display of the last two lines

To delete a block of lines the block can be marked with DD in the first and last line DD

Note the deletion of the block

To change the case


To Lower case To Upper case

To change a line to lower case LC has to be typed in the line area

Note the case changed

To change a line to upper case UC has to be typed in the line area

Note the case changed

Find and RFind

To search a string command F followed by the string will have to be typed here.

Note that the matched strings are highlighted

REPEAT FIND:Rfind command is used to place the cursor at the next matching String. To find the next matching string Press F5 which is mapped to Rfind.

When all the strings have been exhausted then this message is displayed

To Replace a string with another string Change command can be used. The change command should be follwed by the string that has to be replaced followed by the new string. Here string PRIYA is to be replaced with PRIYAPRABHU

Note the replaced String

To replace the next matching string, Rchange command can be made use of.

Note the changed text

To replace all the matching strings the command has to be appended by ALL

Note the changed strings

CREATE Command
This command is used to copy a block of lines and paste it in a new member. The following slides demonstrates the usage of this command

The lines that are to be copied are marked as CC

The new member which has to be created is names here.

The copied contents have been pasted here.

Replace Command
This command is used to replace the text of a member with the copied text block

COPY COMMAND MOVE COMMAND

Copying lines
C Cn CC A An B Bn Copy this line Copy n lines starting with this line. Copy a block of lines. Place the copied lines after this line. Repeat the copied lines n times after this line. Place the copied lines before this line. Repeat the copied lines n times before this line.

A for After

From Location

It has copied after

B stands for before

From Location

It has moved the contents before

Down (F8) line number command is used to say down by number of lines For Ex: Down 3 for 3 lines

The cursor is taken the 3rd line

Up max command takes you to the maximium line number i.e is first line

Up max has taken to the first line

Profile command is used to show the profile

Profile is displayed

Option 1 is used to display data or listing

Hex on command enable user to enter the values in Hex decimal (i.e. is in COBOL COMP-3 variable)

Hex off command will switch it off

Renaming a member Copying a member Moving a member

R is used to rename the data set

Enter the new name here

To copy a member

Enter the new PDS name here

Enter the New member name here

Demo1 copied to Demo2

M to move a member

Enter the PDS name

Enter the member name here

Contents of Demo2 moved to Demo4

To compress a Data set Note : Compress works only on PDS data sets. What is the need to compress data ? It is done to reclaim the space occupied by the members that are not linked to the Dataset any more.

Data set information displayed

To scroll with
Page option Cursor option Line number option

Scroll amounts
HALF PAGE n MAX CSR Move the screen window half a page (11 lines or 40 columns). Move the screen window one page (22 lines or 80 columns). Move the screen window n lines or columns. Move the screen window to the top, bottom, left or right margin. Move the screen window so data at the cursor position ends up at the top, the top, bottom, left, or right of the screen. Move the screen window one line or one column less than a full page.

DATA

Page option

F8 is used to Scroll down

F7 is used to Scroll up. If PAGE is specified then one page will be scrolled

Cursor option.

Line number option

Help command (F1 command)

Key command

Key command is used to map the keys

Functional key F5 is mapped to p.3.4

Note: Press F10 or you can select the save option from File menu above

Note:- functional key F5 will take you to Data set list utility menu directly due to key mapping

Thank you

Das könnte Ihnen auch gefallen