This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Mainframe Hands On Exercises 4 IBMersMainframe Hands On Exercises 4 IBMersMainframe Hands On Exercises 4 IBMersMainframe Hands On Exercises 4 IBMers
(Part One: Breaking the Ice)(Part One: Breaking the Ice)(Part One: Breaking the Ice)(Part One: Breaking the Ice)
(1.) GETTING A DEMOM(1.) GETTING A DEMOM(1.) GETTING A DEMOM(1.) GETTING A DEMOMVS IDVS IDVS IDVS ID ...........................................................................................4
(2.) CONFIGUR(2.) CONFIGUR(2.) CONFIGUR(2.) CONFIGURE TERMINAL EMULATOR E TERMINAL EMULATOR E TERMINAL EMULATOR E TERMINAL EMULATOR SOFTWARESOFTWARESOFTWARESOFTWARE.......................................................5
2.12.12.12.1 CCCCONFIGURE AN ONFIGURE AN ONFIGURE AN ONFIGURE AN EEEEMULATOR MULATOR MULATOR MULATOR SSSSESSION TO ESSION TO ESSION TO ESSION TO CCCCONNECT TO THE ONNECT TO THE ONNECT TO THE ONNECT TO THE DEMODEMODEMODEMO SYSTEM VIA SYSTEM VIA SYSTEM VIA SYSTEM VIA WWWWINDOWSINDOWSINDOWSINDOWS ....5
2.22.22.22.2 CCCCUSTOMIZE THE USTOMIZE THE USTOMIZE THE USTOMIZE THE TTTTERMINAL ERMINAL ERMINAL ERMINAL EEEEMULATOR MULATOR MULATOR MULATOR SSSSESSIONESSIONESSIONESSION ...............................................................8
2.32.32.32.3 CCCCONFIGURE AN ONFIGURE AN ONFIGURE AN ONFIGURE AN EEEEMULATOR MULATOR MULATOR MULATOR SSSSESSION TO ESSION TO ESSION TO ESSION TO CCCCONNECT TO THE ONNECT TO THE ONNECT TO THE ONNECT TO THE DEMODEMODEMODEMO SYSTEM VIA SYSTEM VIA SYSTEM VIA SYSTEM VIA LLLLINUXINUXINUXINUX .........10
(3) LOGON TO THE DEM(3) LOGON TO THE DEM(3) LOGON TO THE DEM(3) LOGON TO THE DEMO SYO SYO SYO SYSTEM USING YOUR IDSTEM USING YOUR IDSTEM USING YOUR IDSTEM USING YOUR ID....................................................13
(4.) CUSTOMIZE YOUR (4.) CUSTOMIZE YOUR (4.) CUSTOMIZE YOUR (4.) CUSTOMIZE YOUR DEMOMVS ENVIRONMENTDEMOMVS ENVIRONMENTDEMOMVS ENVIRONMENTDEMOMVS ENVIRONMENT .....................................................16
(5.) USE ISPF FACILI(5.) USE ISPF FACILI(5.) USE ISPF FACILI(5.) USE ISPF FACILITIES TO LOCATE THE DTIES TO LOCATE THE DTIES TO LOCATE THE DTIES TO LOCATE THE DATA SETS CREATED FORATA SETS CREATED FORATA SETS CREATED FORATA SETS CREATED FOR YO YO YO YOUR IDUR IDUR IDUR ID ...........22
(6.) ALLOCATE A PART(6.) ALLOCATE A PART(6.) ALLOCATE A PART(6.) ALLOCATE A PARTITIONED DATA SET EXTITIONED DATA SET EXTITIONED DATA SET EXTITIONED DATA SET EXTENDED (PDSE) USING IENDED (PDSE) USING IENDED (PDSE) USING IENDED (PDSE) USING ISPF PANELSSPF PANELSSPF PANELSSPF PANELS ....26
(7.) POPULATE YOUR N(7.) POPULATE YOUR N(7.) POPULATE YOUR N(7.) POPULATE YOUR NEW PDSE WITH A MEMBEEW PDSE WITH A MEMBEEW PDSE WITH A MEMBEEW PDSE WITH A MEMBERRRR ......................................................28
(8.) ENTER THREE LIN(8.) ENTER THREE LIN(8.) ENTER THREE LIN(8.) ENTER THREE LINES OF TEXT INTO YOURES OF TEXT INTO YOURES OF TEXT INTO YOURES OF TEXT INTO YOUR NEW DATA SET MEMBER NEW DATA SET MEMBER NEW DATA SET MEMBER NEW DATA SET MEMBER ....................29
(9.) USE THE ISPF ED(9.) USE THE ISPF ED(9.) USE THE ISPF ED(9.) USE THE ISPF EDITOR TO MANIPULATE TITOR TO MANIPULATE TITOR TO MANIPULATE TITOR TO MANIPULATE THE TEXTHE TEXTHE TEXTHE TEXT..................................................31
(10.) RUN AN EXECUTA(10.) RUN AN EXECUTA(10.) RUN AN EXECUTA(10.) RUN AN EXECUTABLE AGAINST YOUR NEWBLE AGAINST YOUR NEWBLE AGAINST YOUR NEWBLE AGAINST YOUR NEW DATA SET MEMBER DATA SET MEMBER DATA SET MEMBER DATA SET MEMBER .......................36
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
The Mainframe Hands On Exercises for IBMers is just what it says! It is a three-part series of
hands on practice exercises designed to get you started on navigating the z/OS environment and
also designed to test your new skills:
� Part 1- Breaking the Ice
� Part 2- Practical Experience
� Part 3- Real World Challenge
With the current generation of mainframe programmers reaching retirement age, there is a
huge demand for mainframe skills. The purpose of these exercises is to stimulate interest in the
mainframe platform and to develop the next generation of mainframe programmers.
You don’t need to have any mainframe experience to perform the exercises so come with us on
this journey as we break the ice!
Mainframe Hands On Exercises: Breaking the Ice (Part 1)
ApproximateApproximateApproximateApproximate timetimetimetime totototo completion:completion:completion:completion: 2222 –––– 3333 daysdaysdaysdays (if you are new to the mainframe plan to spend
more time to understand the material)
The objective of this part of the exercise is to get you acquainted with the mainframe interface
as well as with some basic user commands. The instructions below will lead you through
exactly what you need to do to successfully complete Part 1 of the exercise. Good luck!
:
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
__5. Request a User ID for System z Demo System (DEMOMVSDEMOMVSDEMOMVSDEMOMVS).
After you submit your request, you will get a confirmation email that your request has been
received. Within 24 hours, the help desk should email your user ID, password, and access
instructions.
Since you are going to spend some time doing these exercises within the DEMOMVS system,
you will need to get a second DEMOMVS user ID. This will come in handy if for some reason
you get locked out of the DEMOMVS system and you need access to get back in. This will be
discussed in more detail in Section 4.
__6. To get the second ID, go to the DEMOMVS demo system page at
http://w3.demopkg.ibm.com/LPage/DNDEMOMVSACCESS .
__7. Click the ‘How to request a user IDHow to request a user IDHow to request a user IDHow to request a user ID’’’’ button near the top of the page.' On the DEMOcentral
Registration & Log In page, since you are already registered, enter your intranet email
address and password to login. Click the ‘View User IDs’ button located on the top right
hand corner of the page. Click the ‘Request User ID’ menu button. Then click the ‘Request’
button under your first DEMOMVS user ID to submit your request.
As was the case with the first user ID, you will get a confirmation email that your request has
been received. Within 24 hours, the Help Desk should email your user ID, password and access
instructions.
(2.) Configure Terminal Emulator Software
A terminal emulator program is a PC application that provides an interface to a mainframe
system that is similar to a 3270 terminal. This section will show you how to configure the IBM
Personal Communications (PCOMM) terminal emulator for windows or configure an emulator
session to connect to the DEMOMVS system via Linux.
If you are using Windows go to section 2.1 aIf you are using Windows go to section 2.1 aIf you are using Windows go to section 2.1 aIf you are using Windows go to section 2.1 and 2.2 to configure your emulator session. For nd 2.2 to configure your emulator session. For nd 2.2 to configure your emulator session. For nd 2.2 to configure your emulator session. For
Linux, skip to section 2.3.Linux, skip to section 2.3.Linux, skip to section 2.3.Linux, skip to section 2.3.
2.1 Configure an Emulator Session to Connect to the DEMO system2.1 Configure an Emulator Session to Connect to the DEMO system2.1 Configure an Emulator Session to Connect to the DEMO system2.1 Configure an Emulator Session to Connect to the DEMO system via Windows via Windows via Windows via Windows
PCOMM should already be installed on your system if you have the IBM Client for e-business
image. If you do not have PCOMM, you can install it from the IBM Standard Software Installer
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
__1.__1.__1.__1. Start IBM Personal Communications by clicking:
Start Start Start Start ���� All Programs All Programs All Programs All Programs ���� IBM Personal Communications IBM Personal Communications IBM Personal Communications IBM Personal Communications ���� Start or Configure Sessions Start or Configure Sessions Start or Configure Sessions Start or Configure Sessions....
__2. In the Session Manager window, click the New SessionNew SessionNew SessionNew Session button.
__3. In the Customize Communication window, click Link ParametersLink ParametersLink ParametersLink Parameters.
__4. Enter the Primary Host Name: demomvs.demopkg.ibm.comdemomvs.demopkg.ibm.comdemomvs.demopkg.ibm.comdemomvs.demopkg.ibm.com. Leave the Port Number default
of 23. Click OKOKOKOK.
__5. You can customize the Terminal Emulator Session screen size to display more lines of text
on the screen. The default is 24 lines, but it may be helpful to increase this to 32 lines.
__5. Under Window Title, deselect the first checkbox Long SessionLong SessionLong SessionLong Session----ID, Session AID, Session AID, Session AID, Session A.. Select the
Session NameSession NameSession NameSession Name checkbox, and fill in the Session Name: DEMOMVSDEMOMVSDEMOMVSDEMOMVS. Click OKOKOKOK.
__6. Save the customized Terminal Emulator Session for future use. Select File > Save File > Save File > Save File > Save and give
the profile a name, such as DEMOMVS.ws. The next time you go to Start or Configure Start or Configure Start or Configure Start or Configure
SessionsSessionsSessionsSessions, there will be an icon for DEMOMVS.
You are now ready to continue with the instructions in Section 3!Section 3!Section 3!Section 3!
2.3 2.3 2.3 2.3 Configure Configure Configure Configure an Emulator Session to Connect to the DEMO system via Linuxan Emulator Session to Connect to the DEMO system via Linuxan Emulator Session to Connect to the DEMO system via Linuxan Emulator Session to Connect to the DEMO system via Linux
This section will show you how to configure ERICOM Terminal Power Terminal Interconnect.
ERICOM should already be installed on your system if you have the IBM Linux image.
__1.__1.__1.__1. You can Start ERICOM Power Terminal Interconnect by clicking:
Applications Applications Applications Applications ���� Open Client Open Client Open Client Open Client ���� ERICOM Power Terminal Interconnect ERICOM Power Terminal Interconnect ERICOM Power Terminal Interconnect ERICOM Power Terminal Interconnect
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
__2. In the Connect window, choose Terminal Type 3270 Display3270 Display3270 Display3270 Display.
__3. Enter the Host Name: demomvs.demopkg.ibm.comdemomvs.demopkg.ibm.comdemomvs.demopkg.ibm.comdemomvs.demopkg.ibm.com. Leave the Port Number default of 23232323.
__4. Click the Save As…Save As…Save As…Save As… button
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
You are now ready to continue with the instructions in Section 3Section 3Section 3Section 3!!!!
(3) Logon to the Demo System using your ID
A quick note about z/OS:A quick note about z/OS:A quick note about z/OS:A quick note about z/OS: z/OS is the operating system for the mainframe and it is an upgrade of
what was previously called the OS/390. Both of these operating systems are an evolution of
MVS (Multiple Virtual Storage). There are still many references to MVS and OS/390 in
mainframe literature.
To gain access to the mainframe with your user ID, you need to login to TSO (Time Sharing
Option).
Here's where things will be a little different than what you are probably used to.
__1. To get to the TSO prompt, type: TSO TSO TSO TSO on the welcome screen (most z/OS functions are not
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
CaSe SeNsItIvE), and then hit the right Ctrl keyright Ctrl keyright Ctrl keyright Ctrl key which is your enter key which is your enter key which is your enter key which is your enter key:
Remember that on the mainframe, the right Ctrl key enters commands, and the Enter key, along
with the arrows and tab key, is used for navigating the cursor, unless you have changed it as
explained on 2.2 Section “Customize the Terminal Emulator Session”.
__2. At the ENTER USERID prompt, put in your DEMOMVS ID and hit the right Ctrl key (enter
key). You will be taken to this screen on the next page:
__3. After you type in DEMOMVS ID and the temporary password, hit Ctrl. You will be
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
Now your screen is set up like an experienced systems programmer.
__4. To get back to the ISPF Primary Option Menu, press F3. F3 almost always takes you to the
previous screen.
In z/OS, the F (function) keys are customizable by the user or the application. F3 is a very
important key to remember. If you accidentally hit F3 twice, you'll be taken all the way back to
the TSO READY prompt - to get back to the ISPF Primary Option Menu from here, enter ISPF
and press Ctrl.
IMPORTANTIMPORTANTIMPORTANTIMPORTANT NOTE ON LOGGING OFF (and logging back on): NOTE ON LOGGING OFF (and logging back on): NOTE ON LOGGING OFF (and logging back on): NOTE ON LOGGING OFF (and logging back on):
If you don't intend to log off before completing "Breaking the Ice: Part 1," you should skip to
Section #5 after reading this sentence: Be sure to come back and read this section before
attempting to end your session so that you don't get locked out of your account.
__1. When you need to log off of z/OS, press F3 until you arrive at the TSO READY prompt.
Type LOGOFF and press Ctrl:
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
__6. You can also browse members by entering a bbbb on the field next to them.
__7. To edit a member enter eeee.
At this stage you should be comfortable navigating through the data sets and members. Next we
will create some new ones.
Background to exploreBackground to exploreBackground to exploreBackground to explore: Quick and dirty overview of mainframe file systems:Quick and dirty overview of mainframe file systems:Quick and dirty overview of mainframe file systems:Quick and dirty overview of mainframe file systems:
As you will shortly find out, the simple action of creating a file is more of a process on a
mainframe than on a PC. It's not an "old technology," there are good reasons for the differences.
On a PC or Mac, all the operating systems (Windows, Linux, Mac OS, etc.) use what are called
bitwise file systems. The majority of z/OS uses what is called a record-oriented file system. The
difference is, in a bitwise file system, files are just a collection of sequential streams of bits.
There is a special character to tell the computer where a line (or "record" in mainframe-speak)
ends and the next one starts. In a record-oriented file system, instead of having a stream of bits,
files are organized on the disk into separate records. Because of this property, you define the
sizes and attributes of your records so there is no need for a special end line character, which
helps to conserve system resources. (Mainframes can also support special bitwise file systems
called HFSes and ZFSes.)
What else makes z/OS different? z/OS has very rich support for controlling resources, and this
spills over into its file system. When you make a new data set, you have to define how big it can
grow, as well as how its records are set up. z/OS needs to track each file because the disk access
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
quotes around the name. In this case, in the Data Set Name field, enter
‘‘‘‘VITALITY.DNET###.PARTONE’ (where DNET### is your DEMOMVS ID).
__2. On the option line, type A for Allocate new data set. Press Ctrl to continue.
This next screen is the one you use to customize your new data set. See how it says More: +More: +More: +More: + in
the top right-hand corner? That means that the page is too large to fit on one screen.
__3. Use F7 and F8 to page up and down.
Specify the following attributes for your PDSESpecify the following attributes for your PDSESpecify the following attributes for your PDSESpecify the following attributes for your PDSE:
The PDSE should be allocated in tracks, with a primary quantity (allocation) of 1, and a
secondary quantity of 2. It should have 10 directory blocks. Record format should be FB (fixed
block). Record length should be 80. Block size should be 32000. Data set name type should be
LIBRARY (this tells the system that you are creating a PDSE).
__4. Set these values appropriately on this screen. Any field that is not explicitly mentioned in
italics above can be left blank or left with whatever default the system provided. Hit Ctrl
to continue.
On the next screen, notice the message in the top right corner: Data set allocated. Whenever
you see a message appear in the top right hand corner, you can hit the F1 key (Help key) for
additional information.
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
You've successfully created a new data set on the mainframe. Now let's create some data sets!
More background to explore:More background to explore:More background to explore:More background to explore: So what types of datasets can I make, anyway? So what types of datasets can I make, anyway? So what types of datasets can I make, anyway? So what types of datasets can I make, anyway?
You've just made a PDSE, PPPPartitioned DDDData SSSSet EEEExtended, and as the extended implies, the PDS
was its predecessor. PDSEs are very similar to PDSs, with a few internal improvements. There is
another type of data set called a sequential data set. A sequential data set is like a flat file; it
behaves the same way as a member of a PDS would. You can edit a sequential data set directly,
and it doesn't hold any members.
(7.) Populate your new PDSE with a member
(7.) Populate your new PDSE with a member
Right now, your data set is just an empty container. We need to store some data in it. A member
can be anything you'd like it to be - flat text, executables, program output - just like the files on
your home computer.
Let's create a simple flat text member.
__1. F3 all the way back to the ISPF Primary Option Menu. Select option 2 (Edit). Let's name the
new member after your name.
__2. To create a member, input your data set name with the new member name (up to the first
eight letters of your first name- in this example we have used OGE as the new member
name) in parentheses directly afterwards, like in the screen shot below:
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
You've now learned how to log into a mainframe, to browse and create data sets, and to create
and edit your own data set member. Not too shabby. Now let's run an executable program
against the member you created.
More background to explore: More background to explore: More background to explore: More background to explore: Why do I have to keep pressing page up and page down?Why do I have to keep pressing page up and page down?Why do I have to keep pressing page up and page down?Why do I have to keep pressing page up and page down?
Probably the most unfamiliar part of the ISPF editor is the fact that it doesn't just automatically
scroll up and down like most PC editors do. There is a good reason for this! It's for efficiency's
sake. In the non-mainframe world, when you are using an editor that scrolls in real-time, going
through the network to a server, you are always sending data back and forth to the server (for
just about every keystroke). With mainframes (and the emulator you're using), data is only sent
to the mainframe when you hit the Ctrl key or a function (F#) key. This saves a lot of traffic.
When you have upwards of 10,000 or more folks working at the same time, those few bytes on
the network can mean a big savings, especially if it's over an expensive wide area network
(WAN) link!
(10.) Run an executable against your new data set member
__1. F3 out of your data set member - it will save automatically (if you ever want to quit
without saving, QQUITQQUITQQUITQQUIT on the command line will do the trick. The extra QQQQ lets the editor
know that you're serious about deleting your work.)
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
__2. From the ISPF Primary Option screen, select option 6: Command.
This screen lets you enter TSO commands from ISPF. We need to execute a REXX program
(REXX is a powerful, user-friendly programming language used on the mainframe) that is
stored in the member VITALITY.ZOS.CONTEST.REXX(COUNT) against the member you created.
"EXEXEXEX" is the TSO command for "EXECUTEEXECUTEEXECUTEEXECUTE."
__3. To execute the REXX program, enter on the command line: EX EX EX EX
'VITALITY'VITALITY'VITALITY'VITALITY....ZOS.ZOS.ZOS.ZOS.CONTEST.REXX(COUNT)' 'CONTEST.REXX(COUNT)' 'CONTEST.REXX(COUNT)' 'CONTEST.REXX(COUNT)' 'OGEOGEOGEOGE'''' (where OGE is whatever you named the
member you created):
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007
__8. Make sure that the High Level Qualifier VITALITYVITALITYVITALITYVITALITY is specified on the Dsname Level field,
and press Ctrl.
__9. On the next screen, put an EEEE for edit beside the data VITALITY.DNET##. PARTONEVITALITY.DNET##. PARTONEVITALITY.DNET##. PARTONEVITALITY.DNET##. PARTONE:
__10. Press Ctrl. There is a new member in your data set now, named like your user IDuser IDuser IDuser ID. Put an
EEEE beside it and press Ctrl to have a look.
Mainframe Hands On Exercises 4 IBMers- Part One June, 2007