IBM Mainframe Operational Basicsa
IBM Mainframe Operational Basicsa
Module Objectives:
Be able to express the benefits of a mainframe including
o Z Series architectural concepts
o Consolidation and TCO advantages of this environment
Be able to navigate TSO/ISPF (Interactive System Productivity Facility)
Be able to create partitioned datasets; create, edit, copy, upload, download files
Backgroud: Read sections 1, 2, 3.1, 3.2.1 and 3.3 of z Concepts.pdf in the Reference Module
Active Learning:
First you must recognize that IBM’s enterprise servers (zEnterprise referred to as a mainframe), similar to a
PC, Mac or any computer, must have an operating system. For the z it is z/OS—however, the z also supports
UNIX and Linux. IBM’s mainframe (z10 in our case) has evolved over a long period of time.
The IBM mainframe OS was first created in the 60s so it certainly has a long history. IBM has continued to
invest heavily in evolution of the z with continued development of many improvements, capabilities and a
GUI interface. The initial mainframe systems used a character based interface. However, menu systems were
added to the mainframe OS over the years to make it easier to use and later a GUI interface has been added.
Faculty and students can use any of the following for teaching and research purposes.
MVS (Multiple Virtual Storage) in combination with TSO (Time Sharing Option) and its menu system ISPF
(Interactive Systems Productivity Facility)
Rational Developer for z (RDz)
UNIX
Linux
DB2
CICS
Programming languages – C, C++, Cobol, Java
Job Control Language (JCL)
System Oriented Architecture (SOA) – Web Services
Thus, it is important to recognize that the IBM z is one of the most reliable, accessible and scalable computers
in the world. More than 60% of corporate data is housed on Systems z computers.
Start by logging into the IBM terminal server. The IBM Terminal Server provides access to a wealth of IBM
software. From the IBM home page of Enterprise Systems, open Remote Desktop Connection for
instructions on logging on the IBM terminal server. http://enterprise.waltoncollege.uark.edu/IBM.asp
Note: If you do not get this screen, then click on QWS3270 in the upper left corner and then choose connect.
You should then see the following screen.
Note that a new session may be needed using the Host IP address of 130.184.26.148. If your host name is
different, then perform these steps:
Click the New button and when the pop up window opens, enter a session name (ZUAFNew is shown but this
is a user defined name so enter a name that you prefer) and click the OK button to open the following
window. Fill in the Host Name as indicated below. It needs to be enterprise.uark.edu.
Change to
130.184.26.148
MUST be
unchecked.
Click OK. Now you can access the Enterprise zSeries 900 by selecting this name in the Session Name drop
down box on the initial log on screen.
After entering your password and pressing the enter key, the following window opens.
RACF forces you to change your password on the first login. Remember—8 characters of less.
Enter a new password and press the enter key. At the top of the screen, you will be asked to confirm the new
password—thus, enter it again and press the enter key.
Press the Enter key again to obtain the ISPF (Interactive System Productivity Facility) Primary Option Menu.
Now you are ready to do some work – if you only knew how. Take a few minutes here to experiment. Move
your mouse over the tool bar. Did you find the icon to transfer files to and from host? This QWS 3270
toolbar works like any other Windows application.
To help you become familiar with using the mainframe, we are going to create a Partitioned Data Set (PDS)
and copy some files to and from it. Note—a file within a PDS is called a member. Also, PDS file names
are a bit different than on a PC. A PDS name consists of three parts—Project.Group.Type and members—
files—within the PDS are referenced in parenthesis. For example, say you want to save a file named CblPrg1
in the PDS Douglas.Work.Cobol. This file or member would be referenced as Douglas.Work.Cobol(CblPrg1)
without any spaces. The rules for each part of the three parts of the PDS are: no more than eight characters
and must start with a letter. The total length of the PDS with its member name cannot exceed 44 characters.
You will spend a lot of time on this menu although most of your work will be with 1 View, 2 Edit, 3 Utilities
and X Exit.
Note that a box outlined in a dashed white line prevents you from seeing the X Exit option as well as part of
the next to last row of functions keys. This is done because part of our z10 cannot be used except for
academic purposes. However, the X Exit still works as well as all the function keys. Press Enter and the box
outlined in a dashed white line will disappear.
To create a PDS, select option 3 (Utilities) and then option 2 (Data Set) on the Utility Selection Panel shown
below. Note that after you get to know the option numbers, you can select 3.2 from the PRIMARY OPITON
MENU and bypass the Utility Selection Panel to go directly to Data Set Utility screen.
The Data Set Utility screen is used to maintain data sets – create, rename, delete or view the parameters used
to create the data set. For example, to create a data set, enter values for the Project, Group and Type fields
and then tab down to enter A (for Allocate) as the option. Recall that the values for the fields Project, Group,
and Type have to be eight characters or less and must begin with a letter. If this is your first time to use ISPF
—do you recall what the ISPF letters represent? Enter your userid for the Project, Test for the Group and
Data for Type as shown.
ISPF Library:
Project . . Your user ID (DOUGLAS is used below.) Note: You need to use your own userid.
Group . . .TEST
Type . . . . DATA
Note that if you already have a PDS, you can leave the option blank and when you press the enter key, the
data set information will be displayed. If you already have a PDS, I suggest you view this as it shows the
Volume Serial, the device type, etc. These are important but would be different for different computing
environments. Later, you will learn how to find all your PDSs and corresponding files. Also note that in
about the middle of the screen, you can enter a slash (/) to set the option requiring confirm before deleting—
which is the default.
A sample Allocate New Data Set screen is shown below. Ask your instructor for the entry to be used for
Volume Serial. Probably the most confusing part of this has to do with the space allocation and blocking.
FB stands for fixed block and the block size should be an even multiple of the record length. (80 times 20 =
1600—which means there are 20 records per block). Also, one can allocate in bytes, tracks, cylinders, etc. In
this example, 10 tracks (trks) are initially allocated for this PDS and then 2 tracks at a time are allocated as
needed.
Pressing the Enter Key after entering the data will produce the following screen that verifies that the PDS has
been created and cataloged—see the upper right part of the screen. This action also catalogs the PDS.
As you may have noticed, a lot of function keys are used in this environment. – Note that the notion of
function key numbers use both PF and F. PF for function keys until you get logged on—then only F is used.
Thus, when referring to function keys, either notation, PF or F, will mean function key. You will become
very familiar with the F3 (Exit) and F12 (Cancel) function keys. When all else fails, you can usually use
press the F12 (Cancel) function key to back up screens. Many times the F3 (Exit) function key will do
likewise but what actually happens depends on the context in which it is pressed. For example, in the editor,
it saves and then exits—note you may want to press F12 instead to exit without saving.
Creating a couple of files (members) in your PDS should prove fun and helpful in exploring how to use ISPF.
I assume at this point that you have created a PDS and remember its name. Go back to the ISPF PRIMARY
OPTION MENU screen – press F3 or F12 until you get back to this screen. Select option 2 (Edit)—the Edit
Entry Panel appears. Note that, unlike the Data Set Utility screen, this screen has a place for the members
(files) within the PDS. If you knew the name of a file to edit, you would just enter its name and press the
enter key.
However, if the entry is blank and you press the enter key, an Edit screen appears with a list of all the
members (files) contained in the PDS.
To create a new file from the Edit Entry Panel, enter the name of the member (file) you wish to create (we are
using EXAMPLE) and then press the Enter key. An Edit screen will open.
Must enter a
member (file)
name
Notice that the name of the PDS and the member are on the screen above the edit area. In this example, it is
DOUGLAS.TEST.DATA(EXAMPLE). A discussion on how to use the editor will be covered in class and
Return to the PRIMARY OPTION Menu and select option 6 which opens the ISPF Command Shell screen as
shown below. Note: Transferring Files only works with menu option 6 selected!
Recall the transfer files to and from host icon. Click the icon which opens the following dialog box.
Click on the New List Button and add a list name of Test. Click OK
Downloading
Now, we add the files to the list we want to transfer to the PC (download):
When entering the Host File Name, the complete name (PDS and member) must be provided and it
must be surrounded by apostrophes (single quotes) as shown below. Note: To reduce errors, capture
the complete name while in the edit mode and then paste it in the blank. Be sure to remember to add
the apostrophes around the name.
Enter the path and name of the file to be saved on the PC. It is best to use a folder and not the
desktop on your PC. Click on the … to browse for the desired path.
Change the Host Type to TSO.
Select the options for CRLF (Carriage Return/Line Feed) and ASCII/EBCDIC
Because we are downloading to the PC, click on the Receive from Host option.
Note—errors in keying the Host File name do not generate errors, rather nothing is downloaded.
When all data has been entered for one file, click Add to List in the lower left hand corner.
If you want to transfer more than one file, enter the information for another file and then click Add to List.
You will then see two entries instead of one.
To change any of the settings about one of the files, click on that file, make the change and then click Apply.
Click Start Transfer. You will see the following box. Click Yes.
Go to your desktop and look for the file(s). Open it/them with Notepad.
If the transfer does not take place, check your syntax. Did you remember the apostrophes? If all syntax is
correct, click on Done and then click on the Transfer icon again. Select the list you created and then click
Start Transfer.
Uploading
Now try an upload. Find a couple of text files (perhaps a Cobol program) and upload them to your PDS. The
options to select are the same as those selected when downloading; however, the Send to Host option is
selected instead of Receive from Host.
Check your PDS for the files you uploaded. If the transfer did not take place, try the transfer again. Did you
include the apostrophes around the Host Filename?
Logging Off!!
Use F3 until you get back to a screen that will not let you back up further.
There will be four options – enter the number 2 and then press the enter key
You will be taken to a screen where you need to type Logoff and press the enter key.
This completes exiting the system—you can click the close window of the browser
What are the parts of a PDS name? What are the rules for naming a PDS?
What is the difference between function key F3 and function key F12?
If you upload a file from your PC to the mainframe, how is it referred to on the mainframe (not a file, but a
_____)?
Before you upload or download, you need to select this menu option _______.