-
TSO
- Time Share Option
- TSO is not an operating system;
- TSO is the shell, or user interface, by which users interact with the operating system
-
(TSO/E)
- allows users to create an interactive session with the z/OS system.
- TSO provides a single-user logon capability and a basic command prompt interface to z/OS.
-
ISPF
- Interactive System Productivity Facility
- Most users work with TSO through its menu-driven interface, Interactive System Productivity Facility (ISPF).
-
PF1, PF3, PF7, PF8, PF10, PF11
- PF1 HELP
- PF3 Exit, end or return
- PF7 Page up
- PF8 Page down
- PF10 Scroll left
- PF11 Scroll right
-
ISPF is frequently used to
- manipulate z/OS datasets.
- ISPF is user-extensible and it is often used as an application program interface
-
ISPF allows you to accomplish
- Create/ Edit your source code for COBOL or any programming language
- Create/ Edit JCL streams used to test and execute your programs
- Copy members from one dataset to another dataset
- Create/ modify / delete Datasets as required
- Submit jobs for processing
- Retrieve the results of each job that was submitted
- Print information
-
there are two types of Data Sets that you will be working with:
-
PDS
- Partition Data Set
- A PDS is similar to a folder in Windows where the PDS will contain any number of members
-
A partitioned data set (PDS) consists of:
- a directory and
- one or more members.
- A PDS is also called a library.
-
What is JES?
- job entry subsystem
- z/OS uses a job entry subsystem or JES to receive jobs into the operating system, to schedule them for processing by z/OS, and to control their output processing.
- JES is the component of the operating system that provides supplementary
- job management, data management, and task management functions such as scheduling, control of job flow, and spooling.
-
JES handles the following aspects of batch processing for z/OS:
- Receive jobs into the operating system
- Schedule them for processing by z/OS
- Control their output processing
-
z/OS has two versions of job entry systems:
JES2 and JES3
-
JES2 and JES3 have many functions and features, but their most basic functions are as follows:
- Accept jobs submitted in various ways:
- From ISPF through the SUBMIT command
- Over a network
- From a running program, which can submit other jobs through the JES internal reader
- From a card reader (very rare!)
- Queue jobs waiting to be executed. Multiple queues can be defined for various purposes.
- Queue jobs for an initiator, which is a system program that requests the next job in the appropriate queue.
- Accept printed output from the job while it is running and queue the output.
- Optionally, send output to a printer, or save it on spool for SDSF, InfoPrint, or another output manager to retrieve.
-
DSLIST
- Data Set LIST
- This tool will show you the names of all your standard files and library files and allow you to list all member files, then browse or edit these member files.
-
SDSF
System Display and Search Facility
-
-
Rename Member
- from ISPF select 3.1 (Utilities.Library)
- 3=Utilities, .1=Library
- fill in:
- Project: userid
- Group: COMP1081
- Type: LAB01
- Press enter key to receive a list of members
- To the left of the member name where the “.” or "_" appears enter a “r” over the “.” or "_"
- You will receive a pop-up menu allowing you do perform a rename
-
view members of the specified PDS - Method1
- 1. From the “ISPF Primary Option Menu” select Option 1 “View”
- 2. Move to
- “Other Partitioned, Sequential, or VSAM Data Set or z/OS UNIX file”
- 3. In the “Name” area enter: ‘SLC.CPA.COMP1081.LAB01’
If you wish to view the contents of any member: position the cursor at the “period” to the left of the member name enter “s” then press the enter key
-
view members of the specified PDS - Method2
- Select Option 1 "View Display Source Data or Listing"
- You will be taken to the “View Entry Panel”
- In the section: “ISPF Library:” section enter the Project, Group, and Type
-
Finding Datasets
- move to DsList (=3.4 from ISPF Primary Option Menu)
- In the “Dsname Level” replace “KC02132” with your “userid” and press enter
- This will show you all catalogued dataset sets with the name starting with your “userid”
- You should see a number of PDS with this high level qualifier
-
Creating a PDS with name userid.COMP1081.LAB01
- goto Data Set Utility
- in ISPF Library:
- Project userid
- Group COMP1081
- Type LAB01
- Option ===> A Enter
- You will be move to "Allocate new data set"
- complete following:
- Management Class Default
- Storage Class accept the default
- Volume Serial accept the default
- Device Type blank
- Data class blank
- Space units CYLINDER
- Average record unit blank
- Primary Quantity 2
- Secondary Quantity 1
- Directory blocks 2
- Record format FB
- Record length 80
- Block size 80
- Data set name type PDS
- press Enter - this will allocate a a new data set
-
short to Data Set Utility
=3.2
-
shortcut to Data Set List Utility
=3.4
-
Move/Copy Files
- move to Move/Copy Utility (=3.3)
- Tab the section: “From Other Partitioned or Sequential Data Set” section and enter
- ‘SLC.CPA.COMP1081.LAB01(*)’
- (The asterisk indicates all members)
- Tab to the command area and enter a “c” for copy, then press enter
Here you will be required to enter the name of the PDS that you wish to copy to which is: ‘userid.COMP1081.LAB01’
-
shortcut to Move/Copy Utility
=3.3
-
shortcut to Library Utility
=3.1
-
Editing Members
- move to Library Utility(=3.1)
- To edit any member shown simply tab to the left area beside the member you wish and enter an “e”, then press enter.
- You will be taken into edit mod
- To exit from edit mode press “F3” key
-
split screen
- position cursor where to split
- F2
- F9 to swap between two sessions
- F3 to exit
-
Move a file from Mainframe to USB Stick
-
logoff
- x in Option ===> x
- a “2” in the “Process Option” area
- READY
- type logoff
-
Delete an existing Member
- To delete a member use option 4 (Dlist) off the “ISPF Primary Option menu”
- On the “Data Set List Utility” screen enter your TSO account name in the “Dsname Level”
- This will display all datasets for your TSO account
- Select the PDS: “COMP1081.LAB02” by enter a “b” in the “Command” area on the left of the display
- Now you will see a list of member in this PDS
- Under the “Browse” (left side of the display” enter “delete” on the member you wish to delete and press enter, you will be asked to confirm the delete, please do so
- Use “F3” to return to back
-
Job Submission
- Use option “3.4” from the ISPF Primary Option Menu
- This Dsname Level should have your user id specified
- Select the PDS named: userid.COMP1081.CNTL then browse the PDS
- The two members describe above should be displayed.
- When submitting jobs, during job submission you will be prompted to enter a letter, this helps to uniquely identify the specific job being submitted and retrieved
- FIRSTJOB Submission Steps
- Tab to the member “FIRSTJOB” and enter a “j” in the left command area
- This will start the job submission
- You will be prompted to enter a letter, enter the letter: “a”
- Clear your screen
-
Retrieving Output
- Use option “3.8” from the ISPF Primary Option Menu (Outlist Utility)
- Tab to the section “For jobs to be Selected:”
- Enter the jobname that you submitted from “FIRSTJOB”.
- This should be your userid followed by the letter “a”: Example KC02132a
- Press the enter key and “Outlist” will display the results of this job
- You may page forward (PF8) and page backward (PF7) to view the entire contents of this job
- Notice there is something called “cond code” with a value.
- Search through this listing for the “cond code” values
- “cond code” values for this job should be “0000” meaning the job was successful
Please note that you may use “SDSF” (Option 13) from the ISPF Primary Option menu to view Input and Output queues as well as using “Outlist”. See your document for using SDSF
-
shortcut to Outlist Utility
=3.8
-
Send and Receive Files
- Exit from “ISPF” by returning to the “ISPF Primary Option Menu”
- Then enter “x” to return to a “TSO” command prompt
- enter a “2” to the right of the “Process Option” line then press enter
When at the “Ready” prompt you may begin the “File Transfer”
- Click on “Transfer” on the Menu bar
- Select “Receive file from Host”
- Next enter the appropriate PDS name on the Mainframe, and name the file on your USB stick
- On the left side “Source – Host File” enter:
- ‘userid.comp1081.CNTL(FIRSTJOB)’
- On the right side “Target – PC File” do the following
- Click on the “Browse” button, select your “USB” stick
- Replace the name “lab01” in the example above with the name: FIRSTJOB
- Make sure under “Data” that the “Text” button is selected, and under “Host” the “TSO” button is selected
- Now click on the “Receive” button to actually download the file to your “USB” stick
-
ISPF normally operates in “full-screen” mode. It uses two types of screens:
menu screens and dialogue screens ( called PANELS in ISPF ).
-
like the home page
The ISPF Primary Option Menu
-
Pull-down menus
- these appear along the top of the panel. These supply the available commands for this panel.
- to use these, place the cursor at the beginning of the menu item. Use TAB key or mouse click to do this. Then press Enter
- a list of available commands is displayed that can be executed by typing the appropriate option number.
-
In the ISPF editor, there are two types of commands:
primary commands and line commands
- The Primary commands are entered in the Command Input Area. They apply to the entire source member.
- Primary commands are typed at the command prompt.
Line commands are entered over the numbers in the line command area and they affect individual lines.
-
Insert Lines
- Lines can be inserted by the I command, which is typed in the line command area at the spot where the lines are to be inserted. The I command creates blank lines which can subsequently be entered.
- There are two forms of this command
- I Inserts a single line following this line
- In Inserts n lines following this line
-
Deleting Lines
- Lines can be deleted using the D command, typed into the line command area at the line when deletion is to begin.
- There are three forms of this command
- D Deletes this line
- Dn Deletes n lines starting with this line
- DD Delete the block of lines beginning with the first DD command and ending with the second DD command.
-
Repeating Lines
- The R command lets you repeat a single line or a group of lines one or more times.
- The repeated line falls in immediately after the original line.
- The R command has several forms
- R Repeat this line
- Rn Repeat this line n times
- RR Repeat a block of lines
- When you use the RR command, the first RR marks the start of the block. The second RR command indicates the end of the block, and, if you so choose, the number of times to repeat the block.
-
Copying Lines
- Copying lines is similar to repeating them, except that you are able to specify a destination.
- The C command has several forms
- C Copies one line
- Cn Copies n lines
- CC Marks a block of lines for copying
- Then you move elsewhere in the member and type either an A or a B. If you type an A, the source lines are copied after the destination line. If you type a B, they are placed before the destination line.
-
Moving Lines
- Moving lines is similar to copying them except that the source lines are deleted from their original location after they are moved.
- The M command has several forms
- M Moves a single line
- Mn Moves n lines
- MM Marks a block of lines to move
- Then you move elsewhere in the member and type either an A or B. If you type an A, the source lines are copied after the destination line. If you type a B, they are placed before the destination line.
-
Find Command
- You can use the FIND command to search for a specific string of characters. You type FIND at the command line followed by the string. If the search string contains blanks or characters, enclose it in either single or double quotes.
- An example is FIND "PROCEDURE DIVISION"
- This command will find the next line that contains the target string. Quotes are needed if there is a space(s) in the pattern.
-
Locate Command
You can position the display to a certain line number by using the LOCATE command, followed by the line number. Remember that this line number refers to the line number as it appears on the left-hand side of the window.
-
Change Command
- The CHANGE command is related to and works with the FIND command.
- If you wish to change the text 'pgae' to 'page' you would type
- change 'pgae' 'page' on the Command line then press ENTER.
- F5 finds the next occurrence
- If the F6 key is used alone, both the search and the replace will be performed.
- The modifiers for FIRST, PREVIOUS, LAST and the positional or column modifier are available for use with the CHANGE
- The ALL modifier changes all occurrences of the string within the file without asking for confirmation
- c 'string1' 'string2' all
-
Ending the Edit Session
- When you have completed all editing in the ISPF Edit Panel
- End key, PF3: saves your changed member to the primary library.
- PF4: return directly to the ISPF Primary Option Panel, saves the changed member in the process.
- SAVE at the Command line to cause the member to be saved.
- CANCEL causes the changes to be discarded, and you are returned to the Edit Entry Panel.
-
parts of Edit Entry Panel
- Pull Down Menu
- Panel Title
- Parameter input area
- Command Line
- PF key help info
-
Save a Job’s Output
After viewing a batch job, you may not want to purge the output. One
method is to save all the output as a member in a library. This action
basically takes the print out of the z/OS system print queue and puts it
into a normal text file. This file can later be downloaded to a PC and
printed using WordPad to any PC based printer.
- Use SDSF to view your job in the H queue.
- Type XDC under the NP column on the line with your job.
- This will open the “OPEN DATASET” dialogue panel, type the following parameters:
- Dataset Name = PRINT
- Member to use = FIRSTJOB
- Disposition = NEW
- Directory Blocks = 10
- Leave other parameters at the defaults then press Enter. This will copy your job’s print to file ‘KCnnnnn.PDS.PRINT(FIRSTJOB)’
- Jump to DSLIST by typing =3.4 then press Enter
- Type M beside library KCnnnnn.PDS.PRINT, then press enter.
- Type B beside member name FIRSTJOB then press Enter.
- You can now browse your job’s output just like in SDSF.
-
File Transfer
- 1. Logon to ISPF with you userid
- 2. use the X option to leave ISPF and get to the READY prompt. (This means you are in native TSO mode.)
- 3. Using the PC emulator, select menu options Transfer...
- To send a file from your PC to the Mainframe select: “Send to Host”
- To receive a file to your PC from the Mainframe select: “Receive from Host”
- 4. Select the appropriate menu option
- 5. Use dialogue (Fig. 10) to specify the Source PC file name and the target Host file name and select Data Type of text, then click Send button.
- 6. When the transfer completes, following the READY prompt, type the command ISPF to return to the ISPF environment.
-
Create a new member called “newmem” then copy the contents of “FILE001” and “FILE002” into this file:
- ISPF Primary Option Menu 2(=2):
- Edit Entry Panel
- Enter the name of the PDS where the member is to be created, and in the “Member” area enter the name of the new member
- Press enter and a new member will be created and opened up for editing
- To copy the contents of one file into another, move to the “Command” area (bottom of screen)
- Enter the command: “copy file001”
- Then move to the left side of the of the new member (prefix area) and enter an “a” for after
|
|