Professional Documents
Culture Documents
Mainframe: Concepts
1
IBM Global Services – Training Center - Hortolândia
Índice
Páginas Conteúdo
2
IBM Global Services – Training Center - Hortolândia
What is a mainframe?
3
IBM Global Services – Training Center - Hortolândia
Mainframe facts
4
IBM Global Services – Training Center - Hortolândia
Process data to
Batch job Input perform a
Data particular task
Output Data
Application Program
Query
Access shared
data on behalf of
Reply online user
Online (real time) transaction
5
IBM Global Services – Training Center - Hortolândia
XX/XX/XX
GOOD THRU
XX/XX/XX
PAUL FISCHER
bills, etc
PAUL
5
6 Reports
Processing
reports 7
Statistics,
4 summaries,
exceptions
8 Mainframe
Partners Processing batch jobs
and clients
exchange Reports
information 2
1 Reports
Backups
3
Data
update Tape Storage
10 Sequential
9 data sets
Disk Storage
Production System databases
Control Operator
6
IBM Global Services – Training Center - Hortolândia
Account
activities
SNA or TCP/IP 4
1 network
Requests
Branch office
Branch automation
offices systems
2 Mainframe
3 Accesses
database
Office
automation 5
systems
queries 6
and
updates
Central office
Disk
storage
controller
Stores
database
files
7
IBM Global Services – Training Center - Hortolândia
Roles
Operator
End User
While system programmer expertise lies mainly in the mainframe hardware and software
areas, system administrators are more likely to have experience with the applications.
The application designer and application programmer (or developer) design, build, test,
and deliver mainframe applications for the company’s end users and customers. Based on
requirements gathered from business analysts and end users, the designer creates a design
specification from which the programmer constructs an application. The process includes
many iterations of code changes and compiles, application builds, and unit testing.
The system operator monitors and controls the operation of the mainframe hardware and
software. The operator starts and stops system tasks, monitors the system consoles for
unusual conditions, and works with the system programming and production control staff
to ensure the health and normal operation of the systems.
The production control analyst is responsible for ensuring that batch workloads run to
completion--without error or delay.
8
IBM Global Services – Training Center - Hortolândia
z/Virtual Machine (z/VM) has two basic components: A control program (CP) and a
single-user operating system, CMS.
As a control program, z/VM is a hypervisor because it runs other operating systems in the
virtual machines it creates. The control program artificially creates multiple virtual
machines from the real hardware resources. To the user it appears as if they have
dedicated use of the shared real resources. The shared real resources include printers,
disk storage devices, and the CPU. The control program ensures data and application
security among the virtual machines, which are called guest systems. The real hardware
can be shared among the guests, or dedicated to a single guest for performance reasons.
The second major component of z/VM is CMS or Conversational Monitor System. This
component of z/VM runs in a virtual machine and provides both an interactive end-user
interface and the general z/VM application programming interface.
Compared to z/OS, the VSE operating system provides a smaller, less complex base for
batch processing and transaction processing. The design and management structure of
VSE is excellent for running routine production workloads consisting of multiple batch
jobs (running in parallel) and extensive, traditional transaction processing.
Several Linux distributions can be used on a mainframe. These distributions are not from
IBM but their use is supported by IBM.
9
IBM Global Services – Training Center - Hortolândia
Summary
The Mainframe:
10
IBM Global Services – Training Center - Hortolândia
11
IBM Global Services – Training Center - Hortolândia
Introduction
Here we look at the hardware in a complete system
although the emphasis is on the processor “box”
Terminology is not straightforward
• Ever since “boxes” became multi-engined, the terms system,
processor, and CPU have become muddled
12
IBM Global Services – Training Center - Hortolândia
CPU: 9672
13
IBM Global Services – Training Center - Hortolândia
CPU: 2094
14
IBM Global Services – Training Center - Hortolândia
15
IBM Global Services – Training Center - Hortolândia
16
IBM Global Services – Training Center - Hortolândia
PRINTER
17
IBM Global Services – Training Center - Hortolândia
DATA CENTER
18
IBM Global Services – Training Center - Hortolândia
Tape drive
As ligações entre os equipamentos periféricos (Dasd, Tapes, etc) são feitas entre
as Control Units de cada equipamento e os canais
(channels) do box.
Cada periférico deve ser conectado à mais de um canal para haver caminhos
alternativos em caso de quebra e também para uma
melhor performance.
19
IBM Global Services – Training Center - Hortolândia
LPARs
System administrators assign:
• Memory
• Processors
• CHPIDs either dedicated or shared
This is done partly in the IOCDS and partly in a system profile on the
Support Element (SE) in the CEC. This is normally updated through
the HMC.
Changing the system profile and IOCDS will usually require a power-on
reset (POR) but some changes are dynamic
20
IBM Global Services – Training Center - Hortolândia
Accessed by an IP addr
HMC is the tool used to define how each LPAR will work on
one box (Images)
Memory, #Logical Processors and Weight (priority) are the
main characteristics of each LPAR
HMC functions:
POR – Power On Reset
IPL – Initial Program Load
Change Profiles
Operating Systems Commands
21
IBM Global Services – Training Center - Hortolândia
22
IBM Global Services – Training Center - Hortolândia
Characteristics of LPARs
LPARs are the equivalent of a separate mainframe for most practical
purposes
Each LPAR runs its own operating system
Devices can be shared across several LPARs
Processors can be dedicated or shared
When shared each LPAR is assigned a number of logical processors
(up to the maximum number of physical processors) and a
weighting
Each LPAR is independent
LPARs are, in practice, equivalent to separate mainframes. Each LPAR runs its own
operating system. This can be any mainframe operating system; there is no need to run
z/OS, for example, in each LPAR. The installation planners may elect to share I/O
devices across several LPARs, but this is a local decision.
The system administrator can assign one or more system processors for the exclusive use
of an LPAR. Alternately, the administrator can allow all processors to be used on some or
all LPARs. Here, the system control functions (often known as microcode or firmware)
provide a dispatcher to share the processors among the selected LPARs. The
administrator can specify a maximum number of concurrent processors executing in each
LPAR. The administrator can also provide weightings for different LPARs; for example,
specifying that LPAR1 should receive twice as much processor time as LPAR2.
The operating system in each LPAR is IPLed separately, has its own copy3 of its
operating system, has its own operator console (if needed), and so forth. If the system in
one LPAR crashes, there is no effect on the other LPARs.
23
IBM Global Services – Training Center - Hortolândia
I/O Connectivity
CEC box
Partition 1 Partition 2
I/O Processing
Channels
(CHPIDs or PCHIDs)
01 02 ... 40 41 42 ... ... A0 A1 ... ...
O E E E E F F
Other
systems
01
Control ESCON
LAN Unit FICON
Director
switch
(switch)
C0 C1 01 02
Control unit addresses Control Control Control Control
(CUA) Unit Unit Unit Unit
E - ESC ON channel
F - FICON channel
O - OSA-Express channel
Briefly, partitions create separate logical machines in the CEC. ESCON and FICON
channels are logically similar to parallel channels but they use fiber connections and
operate much faster. A modern system might have 100-200 channels or CHPIDs.
24
IBM Global Services – Training Center - Hortolândia
Disk Devices
IBM 3390 Disk Unit
IBM 3990
channels
Control Unit
IBM 3390 disk drives are commonly used on current mainframes. Conceptually, this
is a
simple arrangement, as shown on this slide.
The associated control unit (3990) typically has four channels connected to one or
more
processors (probably with a switch), and the 3390 unit typically has eight or more
disk
drives. Each disk drive has the characteristics explained earlier. This illustration
shows
3990 and 3390 units, and it also represents the concept or architecture of current
devices.
25
IBM Global Services – Training Center - Hortolândia
P r in te r
P r in te r
z890
O S A -E x p re s s
Ta p e R o u te r
d r iv e s
LA N
E n t e r p r is e
S to ra g e S e rv e r1
C o n s o le s
26
IBM Global Services – Training Center - Hortolândia
27
IBM Global Services – Training Center - Hortolândia
Moderately Large
Configuration
CF
Consoles
•Two machines – a new z990 and an
older 9672
OSA Express
•Consoles
© Copyright IBM Corp., 2005. All rights reserved.
This slide shows a larger mainframe, although this is still a modest configuration
when compared to a large mainframe installation. This example is typical in that
both
older and newer mainframes are present, along with channel switches allowing all
systems to access most I/O devices. Likewise, new and older disk controllers (and
devices) and tape controllers (and devices) are present. The total system is in a
modest
Parallel Sysplex configuration.
28
IBM Global Services – Training Center - Hortolândia
29
IBM Global Services – Training Center - Hortolândia
What is z/VM?
An operating system (VM = virtual machine)
A hypervisor, which refers to a system that
virtualizes the real hardware environment
Runs on the zSeries architecture created by IBM
30
IBM Global Services – Training Center - Hortolândia
Control Program (CP) is the collection of software modules that make up the core
(nucleus) of z/VM.
31
IBM Global Services – Training Center - Hortolândia
This shows the general z/VM environment from its real hardware to its
different guest operating systems. On the first level operating system you see z/VM
and the CP commands in the z/VM field. In this example z/VM is the first level
operating system, which contains many second level operating systems. Virtual
Storage Extended (VSE) is an operating system that runs in 31-bit mode on the
zSeries architecture, while z/VM uses both 31-bit and 64-bit modes. The
Conversational Monitor System (CMS) is an operating system running under VM; it
provides timesharing and program development facilities (comparable in function to
TSO but less resource-hungry and generally friendlier). OS/390 is the operating
system on the S/390 architecture. Since z/VM has the capabilities of both S/390
and the new z/Architecture it can run both OS/390 and newer systems such as
z/VM. z/OS is another operating system that runs on zSeries that uses 31-bit and
64-bit mainframe architecture, much like z/VM.
At Marist College, z/VM is used to manage the z/900 (2064-101)
processor. This machine currently has three CPUs (processor chips), and 12GB of
memory (RAM). z/VM 4.4.0 is currently running on the machine with many
secondary guest systems. Among these guest operating systems there are three
OS/390 systems, 20 z/Linux systems providing production services for Foxmail,
IceCast (rebroadcasts the college radio station via the web), event calendars,
Marist College Library web site, etc. Over 500 z/Linux systems are used for classes
such as Web Programming I and II, and E-commerce, for example. z/VM-based
services consist of IMAP (Internet Message Access Protocol), LISTSERV (a List
Server that allows its users to manage email lists on their corporate networks or on
the internet), TSM (Tivoli Storage Manager, which protects and manages a broad
range of data), and many others.
32
IBM Global Services – Training Center - Hortolândia
A first level z/VM is the base operating system that is installed on top
of the real hardware. A second level operating system is a system that is created
upon the base z/VM operating system. Therefore z/VM as a base operating system
runs on the hardware, while a guest operating systems runs on the virtualization
technology. In other words, there is a first level z/VM operating system that sits
directly on the hardware, but the guests of this first level z/VM system are
virtualized. By virtualizing the hardware from the guests we are able to create and
use as many guests as needed with a small amount of hardware.
An example of the functionality of z/VM is if you have a first level z/VM
system and a second level z/VM system, you could continue to create more
operating systems on the second level system. This is not very practical but it is
possible.
34
IBM Global Services – Training Center - Hortolândia
When we speak of z/VM’s base components, we are referring to the different types of environments that
z/VM supports. This slide and the next are here to give you a feel of the types of environments z/VM is capable of using and
will help you understand topics and terms that are presented in the next few modules.
The Conversational Monitor System provides a high-capacity environment that supports large numbers of
interactive users. The Conversional Monitor System (CMS) is a component of z/VM. “Interactive” means supporting two-
way communication between a user and the CMS environment. Although CMS could be called an operating system in itself,
CMS performs two roles within z/VM. First, as an end-user interface, it is part of z/VM that is most often seen by users.
Second, it is the part of the operating system that supports the running of your programs, thus, it is your interface to
application programming languages and facilities.
The Control Program (CP) is primarily a real-machine resource manager. The CP provides each user with
an individual working environment known as a virtual machine. Each virtual machine is a functional equivalent of a real
system, sharing the real processor function, storage, console, and input/output (I/O) device resources. CP is the component
that manages the resources of a single computer so that multiple computing systems appear to exist.
REXX/VM includes the REXX/VM Interpreter, which processes the English-like Restructured EXtended
eXecutor (REXX) programming language. Using REXX, you can write customized application programs and command
procedures. This procedural language allows programs and algorithms to be written in a clear and structured way. REXX
programming has the capability of issuing both commands and conventional inter-language calls to its host environment.
The Group Control System is a virtual machine supervisor, providing multitasking services that allow
numerous tasks to remain active in the virtual machine at one time. A virtual machine supervisor bands many virtual
machines together in a group and supervises their operations. GCS runs in a real XA machine and is installed with z/VM.
This allows all virtual machines in a GCS group to run in XA or XC mode. GCS can not be built or run in a 370-mode
virtual machine.
XA mode means running with the full capabilities of the Extended System Architecture (ESA). Either 24-
bit or 31-bit addressing can be used, as well as the more efficient XA I/O using the Channel Subsystem.
ESA/XC virtual machine architecture is available only when VM/ESA is running on an ESA/390
processor. ESA/XC architecture lets virtual machines share multiple data spaces or address spaces, where an XC virtual
machine can access one or more data spaces of another virtual machine if authorized to do so. 370 mode is a simulation of
the 370 architecture under the Extended System Architecture machine. For migration purposes GCS supports mixed mode
groups that include XC and XA mode (but not 370 mode).
35
IBM Global Services – Training Center - Hortolândia
What is CMS?
Conversational Monitor System is an operating system
environment itself
Over time CMS became a part of VM
CMS is a single user operating system, which makes it
possible to:
• Create and maintain files
• Write and execute application programs
CMS communicates with users through the console
Unlike Windows 2000, where you can set up multiple users for a single
operating system, such as Admin, User1 and Home, CMS is a single user operating system.
This makes it possible for users to create and update files and to write and execute
application programs. An important aspect of the CMS is that it is the operator or
communicator of your z/VM environment. It executes commands given by users and
displays information from the z/VM environment to the user console.
The console can be considered two separate entities. When you run an
operating system in a virtual machine, you are the virtual machine operator. You operate the
virtual machine and the operating system in your virtual machine. Your virtual machine
operator’s console is the display device at which you log on to z/VM. (Your virtual machine
operator’s console can also be referred to as a virtual console, an operator’s console, or just
a console. All of these terms refer to the display device at which you log on to z/VM.) By
entering commands from your virtual machine operator’s console, you can communicate
with CP and with the operating system executing in your virtual machine. To communicate
with CP, enter CP commands. To communicate with the operating system running in your
virtual machine, enter the commands of that operating system (for z/VM, that would be CMS
commands).
As a side note, many installations have two consoles for the virtual machine
operator: a virtual machine console to communicate with CP, and a system console to
communicate with the operating system running in the virtual machine (CMS). Your virtual
machine operator’s console refers to the console you use to communicate with CP.
36
IBM Global Services – Training Center - Hortolândia
CMS Tasks
With CMS, you can:
Write, test, and debug application programs for use on CMS or
guest systems
Run application programs developed on CMS or guest systems
Create and edit data files
Process jobs in batch mode
Share data between CMS and guest systems
Communicate with other system users
These are the important operations and tasks that CMS is able to
execute. CMS writes, tests, and debugs application programs for use on CMS or a
guest system. CMS runs application programs developed on CMS or guest
systems, creates and edits data files, processes jobs in batch mode, shares data
between CMS and guest systems, and communicates with other systems users.
In batch mode, all data must be supplied beforehand and cannot be
interacted with while the program is executing. Running applications in batch mode
is very reliable and efficient. All data is saved in a file, so data cannot accidentally
be deleted or lost. Batch mode is efficient because it waits to accumulate a
sufficient amount of data to utilize the system processors, I/O devices, and other
networking devices. Therefore, batch mode is an important way of running and
completing CMS tasks.
37
IBM Global Services – Training Center - Hortolândia
The z/MV Help Facility runs under CMS and provides online
assistance for various z/VM functions in the form of menus. The CMS Help Facility
provides information for tasks, commands and options, subcommands, REXX
Statements, callable routines, Pipeline stages, Assembler language macros, and
Messages. Other licensed programs may come with additional help topics. It is
also possible for you to write your own help files. An important thing to remember is
that you can access the z/VM Help Facility at anytime. All you need to do is type
“HELP operand”, where the operand is a command you are having trouble with or
the type of command you are looking for. To arrive at the main help menu, you
would just need to enter “HELP HELP”.
38
IBM Global Services – Training Center - Hortolândia
39
IBM Global Services – Training Center - Hortolândia
Using CP Commands
z/VM uses the CP command language to configure, tune
and manipulate resources
• To control the resources of the real machine
• Processors
• I/O devices
• Networking devices
• To control your virtual machine’s configuration and
environment
40
IBM Global Services – Training Center - Hortolândia
The VM Dump Tool assists in analyzing dump data from a dump file created by the
DUMPLOAD utility. The VM Dump Tool provides a variety of subcommands and macros that
allow you to display, locate, and format dump data interactively. This tool can process CP stand-
alone dumps, CP ABEND dumps, and virtual machine dumps of a CP system. In z/VM, dumps
can be initiated by the hardware, software, or the user. Overall, the VM Dump Tool provides
detailed information after an error has occurred in a application or task.
A CP stand-alone dump occurs if the CP is unable to take an abend dump. You can
also initiate a stand-alone dump with the stand-alone dump utility. This stand-alone dump should
give you enough information for troubleshooting problems.
A CP ABEND dump (also called CP dump) must allocate enough spool or TEMP
space on the system to contain the whole system. The system operator can produce a system
abend dump by performing a Program Status Word (PSW) RESTART. The PSW contains the
address of the next instruction to be executed and, when an application or system software error
occurs, why it happened and other status information, which is all stored within the dump file.
The CP system abend dump should give you enough information to resolve most CP problems.
Use the Dump Viewing Facility to format a z/VM dump for the easiest problem resolution.
A virtual machine dump has no clear performance benefits because the amount of
paged out data on the system that was dumped is minimal and much more variable than the real
storage configuration. Virtual dumping time is primarily constrained by the amount of paged out
data and the page data set service times to read in the data, and not the size of the dump output
data set.
41
IBM Global Services – Training Center - Hortolândia
Privilege Class
Revisited
42
IBM Global Services – Training Center - Hortolândia
Logon
Para ativar uma máquina de serviço, à qual deverá executar sua função em modo
desconctado utiliza-se o comando
XAUTOLOG “nome da máquina”
43
IBM Global Services – Training Center - Hortolândia
Estados de tela
Estados de tela representam como o VM irá se
comportar em caso do usuário entrar com comandos
Estados de tela
CP READ - Indica que o Programa de Controle esta aguardando uma linha de informações.
Alternativas para retornar ao status normal: Digitar um comando CP; digitar o comando begin (b)
ou digitar (i cms) para reiniciar a sua máquina virtual.
MORE... - Indica que há mais informações para serem exibidas na tela. As informações
normalmente ficam retidas durante um minuto. Caso neste intervalo ela não seja limpa pelo usuário,
o sistema mudará automaticamente para a próxima tela. Caso se deseje retê-la, basta teclar enter
e a área de status passará para holding.
RUNNING - Status normal de uma tela de uma máquina virtual.
HOLDING - Idem ao MORE, com exceção de que só passará para a tela seguinte se o
usuário pressionar a tecla para limpá-la com a tecla clear (Pause/Break no PC).
VM READ - Indica que seu terminal está aguardando uma linha de informações. Para retornar ao
status running dê um enter.
44
IBM Global Services – Training Center - Hortolândia
45
IBM Global Services – Training Center - Hortolândia
OBS: Para acessar arquivos que estão em minidiscos utiliza-se a exec FILELIST,
teclando FL.
filename (fn) - Pode ter ate 8 caracteres e é o nome do arquivo dado pelo usuário.
filetype (ft) - É uma identificação dada pelo usuário e que especifica uma
característica do arquivo (por exemplo: Se é texto então especificar txt como
filetype). Também pode ter até 8 caracteres.
46
IBM Global Services – Training Center - Hortolândia
CP - Control Program
TCP/IP PVM
47
IBM Global Services – Training Center - Hortolândia
Função do RSCS
RSCS
Sistema Sistema
operacional VM1 operacional VM2
CTC
Exemplos:
sm rscs q sy
sm rscs q pokvm011 q
sm rscs q s390vml1 a
Ação:
ƒ SM RSCS parâmetros
Exemplos:
sm rscs start pokvm011
sm rscs stop tc1vm
sm rscs rout pokvm01 203 to sbryvm07
sm rscs dr pvm9ln1
sm rscs pur pvm9ln1 5237
48
IBM Global Services – Training Center - Hortolândia
USERID USERID
PVM PVM
PKEDPS1 - BOSTON -
Sistema Sistema
operacional operacional
CTC
VM VM
Exemplos:
sm pvm q sy
sm pvm q pkedvm9
Ação:
SM PVM parâmetros
Exemplos:
sm pvm start pkedvm9
sm pvm stop rhqvm02
sm pvm dr kcv3ad1
49
IBM Global Services – Training Center - Hortolândia
Função do VTAM
O VTAM mantém as conexões do VM com um conjunto de
outras máquinas VM, com a função de transporte de
dados, utilizando protocolo SNA.
As outras máquinas GCS utilizam os serviços da máquina
VTAM para cumprir sua função
Comandos de VTAM:
Consulta
SM VTAM D NET, parâmetro
Exemplos:
sm vtam d net,id=cdrms
sm vtam d net,id=stations
sm vtam d net,pending
sm vtam d net,id=r24pp0d,e
Ação
SM VTAM V NET, parâmetros
Exemplos:
sm vtam v net, act,id=r24pp0d
50
IBM Global Services – Training Center - Hortolândia
ƒ SET parâmetros
51
IBM Global Services – Training Center - Hortolândia
52
IBM Global Services – Training Center - Hortolândia
What is z/OS?
Designed for:
• Serving 1000s of users concurrently
• I/O intensive computing
• Processing very large workloads
• Running mission critical applications securely
The operating system we discuss in this course is z/OS1, the most widely used of
all
mainframe operating systems. z/OS is designed to offer a stable, secure, and
continuously available environment for applications running on the mainframe.
z/OS gets work done by dividing it into pieces and giving portions of the job to
various system
components and subsystems that function interdependently. At any point in time,
one
component or another gets control of the processor, makes its contribution, and
then
passes control along to a user program or another component.
53
IBM Global Services – Training Center - Hortolândia
z/OS
System Console
(hardware)
Mainframe computer
(CPU, processor
Master Console storage)
(z/OS)
Operator Console
(z/OS)
Tape drive
Tape
cartridges
DASD
controller
Disk storage
(DASD volumes)
Not shown here, for example, are the hardware control units that connect the
mainframe to the other tape drives, DASD devices, and consoles.
54
IBM Global Services – Training Center - Hortolândia
The running portions of a program are kept in real storage; the rest is
kept in auxiliary storage
Virtual storage means that each running program can assume it has access to all of the
real storage defined by the architecture’s addressing scheme. The only limit is the
number of bits in a storage address.
To allow each user to act as though this much storage really exists in the computer
system, z/OS keeps only the active portions of each program in real storage. z/OS keeps
the rest of the code and data in special files on auxiliary storage, which usually consists
of a number of high-speed direct access storage devices (DASDs).
z/OS provides each user with a unique address space and maintains the distinction
between the programs and data belonging to each address space.
55
IBM Global Services – Training Center - Hortolândia
z/OS and its related subsystems require address spaces of their own to
provide a functioning operating system:
The command START (S) starts a Started Tasks Address Spaces. Ex: S CICS
The command STOP (P) stops a Started Tasks Address Spaces. Ex: P RMF
56
IBM Global Services – Training Center - Hortolândia
Depending on how a z/OS system and its storage devices are configured, a user or
program can directly control many aspects of storage use, and in the early days of the
operating system, users were required to do so. Increasingly, however, z/OS installations
rely on installation-specific settings for data and resource management, and add-on
storage management products to automate the use of storage. The primary means of
managing storage in z/OS is through the DFSMS component, which is discussed in Chapter 4,
“Working with data sets”.
57
IBM Global Services – Training Center - Hortolândia
We won’t attempt to list all of the z/OS program products in this course (hundreds exist);
some common choices include:
• A security system
z/OS provides a framework for customers to add security through the addition of a
security management product (IBM’s program product is Resource Access Control
Facility or RACF®). Non-IBM security system program products are also available.
• Compilers
z/OS includes an assembler and a C compiler. Other compilers, such as the COBOL
compiler, are offered as separate products.
• A relational database, such as DB2
Other types of database products, such as hierarchical databases, are also available.
• Transaction processing facilities
IBM offers several, including:
– Customer Information Control System (CICS)
– Information Management System (IMS)
– WebSphere
• A sort program
Fast, efficient sorting of large amounts of data is highly desirable in batch processing.
IBM and other vendors offer sophisticated sorting products.
• A large variety of utility programs
For example, the System Display and Search Facility (SDSF) program that we use
extensively in this course to view output from batch jobs is a program product. Not
every installation purchases SDSF; alternative products available.
• A large number of other products are available from various independent software
vendors (commonly called ISVs in the industry).
58
IBM Global Services – Training Center - Hortolândia
z/OS Commands
DT
D A,L
D R,L
D U,DASD,ONLINE
D U,TAPE,OFFLINE
D M=CPU
D ASM
D GRC,C
59
IBM Global Services – Training Center - Hortolândia
Summary
The z/OS operating system’s use of multiprogramming and multiprocessing, and its
ability to access and manage enormous amounts of storage and I/O operations, makes it
ideally suited for running mainframe workloads.
The concept of virtual storage is central to z/OS. Virtual storage is an illusion created by
the architecture, in that the system seems to have more storage than it really has. Virtual
storage is created through the use of tables to map virtual storage pages to pages in real
storage or slots in auxiliary storage. Only those portions of a program that are needed are
actually loaded into real storage. z/OS keeps the inactive pieces of address spaces in
auxiliary storage.
z/OS is structured around address spaces, which are ranges of addresses in virtual
storage. Each user of z/OS gets an address space containing the same range of storage
addresses. The use of address spaces in z/OS allows for isolation of private areas in
different address spaces for system security, yet also allows for inter-address space
sharing of programs and data through a common area accessible to every address space.
Programs running on z/OS and zSeries mainframes can run with 24-, 31-, or 64-bit
addressing (and can switch among these if needed). Programs can use a mixture of
instructions with 24-bit, 64-bit, or 32-bit operands, and can switch among these if
needed.
Middleware is a relatively recent term that can embody several concepts at the same
time. A common characteristic of middleware is that it provides a programming
interface, and applications are written (or partially written) to this interface.
60
IBM Global Services – Training Center - Hortolândia
61
IBM Global Services – Training Center - Hortolândia
Objectives
Be able to:
• Give an overview of batch
processing and how work is
initiated and managed in the
system.
• Explain how the job entry
subsystem (JES) governs
the flow of work through a
z/OS system.
62
IBM Global Services – Training Center - Hortolândia
Batch processing is for those frequently used programs that can be executed with
minimal
human interaction. They are typically executed at a scheduled time or on an as-
needed
basis.
Work running on z/OS is called a job, and job control language or JCL is used to
describe
certain attributes of the job to z/OS. A z/OS batch job consists of programs that run
in
environments described by JCL. After the JCL is submitted to the system, there is
normally no further human interaction with the job until it is complete.
63
IBM Global Services – Training Center - Hortolândia
What is JES?
In the z/OS operating system, JES manages the input and
output job queues and data.
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.
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.
z/OS has two versions of job entry systems: JES2 and JES3. Of these, JES2 is
most
common by far and is used throughout this text.
64
IBM Global Services – Training Center - Hortolândia
65
IBM Global Services – Training Center - Hortolândia
To run multiple jobs asynchronously, the system must perform a number of functions:
• Select jobs from the input queues (JES does this).
• Ensure that multiple jobs (including TSO users and other interactive applications) do
not conflict in data set usage.
• Ensure that single-user devices, such as tape drives, are allocated correctly.
• Find the executable programs requested for the job.
• Clean up after the job ends and then request the next job.
Most of this work is done by the initiator, based on JCL information for each job. The
most complex function is to ensure there are no conflicts due to data set utilization. For
example, if two jobs try to write in the same data set at the same time (or one reads while
the other writes), there is a conflict.1 This event would normally result in corrupted data.
The primary purpose of JCL is to tell an initiator what is needed for the job.
If job A and job B must both write to a particular data set, the system (through the initiator) does not
permit
both jobs to run at the same time. Instead, whichever job starts first causes an initiator
attempting to run the other job to wait until the first job completes.
66
IBM Global Services – Training Center - Hortolândia
The program can be used to process different input data sets simply by changing
the
DSNAME in the JCL. This becomes significant for large commercial applications
that
might use dozens of data sets in a single execution of the program.
67
IBM Global Services – Training Center - Hortolândia
All jobs (STCs, JOBs and TSUs address spaces) are submitted to JES2 or JES3
using the JCL
68
IBM Global Services – Training Center - Hortolândia
Determine
JES interprets
the need JCL and
Create Submit
and
the JCL the Job passes it to
characteristics
z/OS initiator
of the Job
z/OS
System manages
Messages each step
of execution
User
JES collects
views
JES prints the output and
and
output information
interprets
about the Job
output
Imagine that you are a z/OS application programmer and you are developing a program
for a non-skilled users. Your program is supposed to read a couple of files, write another
couple, and then produce a printed report. This program will run as a batch job on z/OS.
What sorts of functions are needed in the operating system to fulfill the requirements of
your program? And, how will your program access those functions?
First, you need a sort of special language to inform the operating system about your
needs. On z/OS, this is Job Control Language (JCL). The use of JCL is covered in detail
in Chapter 6, “Using JCL” , but for now assume that JCL provides the means for you to
request resources and services from the operating system for a batch job.
Specifications and requests you might make for a batch job include the functions you
need to compile and execute the program, and allocate storage for the program to use as it
runs.
Think of JES as the manager of the jobs waiting in a queue. It manages the priority of the
set of jobs and their associated input data and output results. The initiator uses the
statements on the JCL cards to specify the resources required of each individual job once
it has been released (dispatched) by JES.
Your JCL as described is called a job—in this case formed by two sequential steps, the
compilation and execution. The steps in a job are always executed sequentially. The job
must be submitted to JES in order to be executed. In order to make your task easier, z/OS
provides a set of procedures in a data set called SYS1.PROCLIB. A procedure is a set of
JCL statements that are ready to be executed.
69
IBM Global Services – Training Center - Hortolândia
Spooling
JCL
//DD1 DD *
program ……...............
JES 1
read 2 data
……...............
/*
spool //DD2 DD SYSOUT=A
JES 4
SYSOUT
write 3
Printer
Spooling is the means by which the system manipulates its work, including:
• Using storage on direct access storage devices (DASD) as buffer storage to reduce
processing delays when transferring data between peripheral equipment and a
program to be run.
• Reading and writing input and output streams on an intermediate device for later
processing or output.
• Performing an operation such as printing while the computer is busy with other work.
There are two sorts of spooling: input and output. Both improve the performance of the
program reading the input and writing the output.
To implement input spooling in JCL, you declare // DD *, which defines one file whose
content records are in JCL between the // DD * statement and the /* statements. All the
logical records must have 80 characters. In this case this file is read and stored in a
specific JES2 spool area (a huge JES file on disk) as shown on this slide.
Later, when the program is executed and asks to read this data, JES2 picks up the records
in the spool and delivers them to the program (at disk speed).
To implement output spooling in JCL, you specify the keyword SYSOUT on the DD
statement. SYSOUT defines an empty file in the spool, allocated with logical records of
132 characters in a printed format (EBCDIC/ASCII/UNICODE). This file is allocated by
JES when interpreting a DD card with the SYSOUT keyword, and used later for the step
program. Generally, after the end of the job, this file is printed by a JES function.
70
IBM Global Services – Training Center - Hortolândia
Two-step job
First step Second step
Program Program
Tape Printer
Master
Suppose now that you want to make a backup of one master file and then update the
master file with records read-in from another file (the update file). If so, you need a job
with two steps. In Step 1, your job reads the master file, and writes it to tape. In Step 2,
another program (which can be written in COBOL) is executed to read a record from the
update file and searches for its match in the master file. The program updates the existing
record (if it finds a match) or adds a new record if needed.
Your JCL must have two steps, the first one indicating the resources for the backup
program, and the second for the update program.
Logically, the second step will not be executed if the first one fails for any reason. The
second step will have a // DD SYSOUT statement to indicate the need for output spooling.
The jobs are only allowed to start when there are enough resources available. In this way,
the system is made more efficient: JES manages jobs before and after running the
program; the base control program manages jobs during processing.
71
IBM Global Services – Training Center - Hortolândia
During the life of a job, JES2 and the base control program of z/OS control different
phases of the overall processing. The job queues contain jobs that are waiting to
run,
currently running, waiting for their output to be produced, having their output
produced,
and waiting to be purged from the system.
72
IBM Global Services – Training Center - Hortolândia
SYSIN SYSOUT
SYSOUT
NON-PRINT/PUNCH
JCL
OUTPUT
JCL & SYSIN
SPOOL
DISK
73
IBM Global Services – Training Center - Hortolândia
As previously mentioned, IBM provides two kinds of job entry subsystems: JES2
and
JES3. In many cases, JES2 and JES3 perform similar functions. They read jobs
into the
system, convert them to internal machine-readable form, select them for
processing,
process their output, and purge them from the system.
74
IBM Global Services – Training Center - Hortolândia
There are several commands on JES2 and JES3 that can be used
to monitor and control Jobs, Lines and other resources status
$DSPL
$DA
$DI
$DU,LNES
As previously mentioned, IBM provides two kinds of job entry subsystems: JES2
and
JES3. In many cases, JES2 and JES3 perform similar functions. They read jobs
into the
system, convert them to internal machine-readable form, select them for
processing,
process their output, and purge them from the system.
75
IBM Global Services – Training Center - Hortolândia
76
IBM Global Services – Training Center - Hortolândia
77
IBM Global Services – Training Center - Hortolândia
LPAR
LPAR
CPU
2064
NETVIEW
LPAR Focal Point
LPAR
SE
DASD
78
IBM Global Services – Training Center - Hortolândia
INTRODUÇÃO :
79
IBM Global Services – Training Center - Hortolândia
netview
NETVIEW
netview
netview
netview
netview
Netview
FOCAL
netview
netview
80
IBM Global Services – Training Center - Hortolândia
LOGON NETVIEW:
Usuário = id
Senha = password
81
IBM Global Services – Training Center - Hortolândia
82
IBM Global Services – Training Center - Hortolândia
83
IBM Global Services – Training Center - Hortolândia
84
IBM Global Services – Training Center - Hortolândia
Descrição
:
Account " Lpar "
Nova Automação
85
IBM Global Services – Training Center - Hortolândia
PF3 => End, finalisa seu trabalho no focal e faz com que você volte
para o NETVIEW.
PF6 => Roll, retorna ao NETVIEW.
PF7 => Up
PF10 =>
PF11 =>
86
IBM Global Services – Training Center - Hortolândia
FOCAL:
87
IBM Global Services – Training Center - Hortolândia
FOCAL - Cores:
Vermelho:
Indica problema, temos que tomar uma ação imediata.
Amarelo:
Indica alerta, pois demonstra alguma anormalidade no sistema e
que pode se transformar em um problema.
Azul:
Com exceção da letra " B ", nos indica problema, falta de
comunicacao com o Netview, ( automação)
Pink:
Qdo. for spool - já esta critico
Qdo. for para uma task o operador precisa tomar uma
ação pois a automação se perdeu.
Verde:
O sistema esta ok.
© Copyright IBM Corp., 2005. All rights reserved.
88
IBM Global Services – Training Center - Hortolândia
FOCAL - Comandos:
TODOS OS COMANDOS PODEM SER EXECUTADOS DE DUAS
FORMAS:
89
IBM Global Services – Training Center - Hortolândia
FOCAL - Explain:
Este comando é utilizado para nos mostrar qual o significado de
cada cor e seu valor para o FOCAL:
EXPLAIN < status > | TARGET= < system_name > |< domain_id>
|<sysplex_name>
Exemplo:
90
IBM Global Services – Training Center - Hortolândia
FOCAL - DISPSTAT:
Este comando é utilizado para demonstrar qual o status
em que se encontra uma determinada TASK ou todas,
relacionadas ao sistema.
Exemplo:
XXXX DISPSTAT
OU
Dispstat,Target=yyyyy
© Copyright IBM Corp., 2005. All rights reserved.
91
IBM Global Services – Training Center - Hortolândia
FOCAL - INGLIST:
Exemplo:
XXXX INGLIST
OU
Inglist,Target=yyyyy
© Copyright IBM Corp., 2005. All rights reserved.
92
IBM Global Services – Training Center - Hortolândia
Exemplo:
Target MVS comando
Lpar MVS comando
MVS comando
© Copyright IBM Corp., 2005. All rights reserved.
93
IBM Global Services – Training Center - Hortolândia
TARGET
exemplo:
SA/390 BLXNV MessageView
LPAR
MEXD S W B G
94
IBM Global Services – Training Center - Hortolândia
95
IBM Global Services – Training Center - Hortolândia
exemplo
MVS D T
96
IBM Global Services – Training Center - Hortolândia
LOG - NETVIEW
BLOG:
97
IBM Global Services – Training Center - Hortolândia
98
IBM Global Services – Training Center - Hortolândia
11
12
1 FOCAL
10 2
9 3
8 4
7
6
5
EASTERN
TIME =
NEW YORK
© Copyright IBM Corp., 2005. All rights reserved.
99
IBM Global Services – Training Center - Hortolândia
100
IBM Global Services – Training Center - Hortolândia
TSO
Allows users to logon to z/OS and use a limited set of basic
commands. This is sometimes called using TSO in its native mode.
ISPF
Provides a menu system for accessing many of the most commonly
used z/OS functions.
101
IBM Global Services – Training Center - Hortolândia
TSO overview
TSO/E
• Acronym for Time Sharing Option/Extensions (TSO/E)
• Allows users to create an interactive session with z/OS.
• Provides a single-user logon capability and a basic
command prompt interface to z/OS.
• Most users work with TSO through its menu-driven
interface, Interactive System Productivity Facility (ISPF).
Most users work with TSO through its menu-driven interface, Interactive System
Productivity Facility (ISPF). This collection of menus and panels offers a wide range of
functions to assist users in working with data files on the system. ISPF users include
system programmers, application programmers, administrators, and others who access
z/OS. In general, TSO and ISPF make it easier for people with varying levels of
experience to interact with the z/OS system.
In a z/OS system, each user is granted a user ID and a password authorized for TSO
logon. Logging on to TSO requires a 3270 display device or, more commonly, a TN3270
emulator running on a PC.
During TSO logon, the system displays the TSO logon screen on the user’s 3270 display
device or TN3270 emulator. The logon screen serves the same purpose as a Windows
logon panel.
z/OS system programmers often modify the particular text layout and information of the
TSO logon panel to better suit the needs of the system’s users. Therefore, the screen
captures shown on these slides might differ from what you would see on a real-life
production system.
102
IBM Global Services – Training Center - Hortolândia
103
IBM Global Services – Training Center - Hortolândia
Perform ===>
Command ===>
PF1/PF13 ==> Help PF3/PF15 ==> Logoff PA1 ==> Attention PA2 ==> Reshow
You may request specific help information by entering a '?' in any entry field
104
IBM Global Services – Training Center - Hortolândia
Using TSO in this way is called using TSO in its native mode.
When you logon to TSO, the z/OS system responds by displaying the
READY prompt, and waits for input (like a DOS prompt).
105
IBM Global Services – Training Center - Hortolândia
The READY prompt accepts simple line commands such as HELP, RENAME,
ALLOCATE, and CALL.
106
IBM Global Services – Training Center - Hortolândia
When you invoke a CLIST, it issues the TSO/E commands in sequence. CLISTs are used
for performing routine tasks; they enable users to work more efficiently with TSO.
107
IBM Global Services – Training Center - Hortolândia
Both are interpretive languages, not compiled languages (although REXX can be
compiled as well).
TSO users create CLISTs with the CLIST command language. Another command
language used with TSO is called Restructured Extended Executor or REXX. Both
CLIST
and REXX offer shell script-type processing. These are interpretive languages, as
opposed to compiled languages (although REXX can be compiled as well). The
textbook
discusses CLIST and REXX in more detail in Chapter 8, “Using programming
languages
on z/OS” .
108
IBM Global Services – Training Center - Hortolândia
ISPF overview
109
IBM Global Services – Training Center - Hortolândia
110
IBM Global Services – Training Center - Hortolândia
You can access online help from any of the ISPF panels
(press the PF1 key)
111
IBM Global Services – Training Center - Hortolândia
112
IBM Global Services – Training Center - Hortolândia
Command Description
I Insert lines
D Delete lines
R Repeat lines
C Copy lines
M Move lines
A After line
B Before line
( Shift right columns
< Shift right data
) Shift left columns
> Shift left data
X Exclude lines
© Copyright IBM Corp., 2005. All rights reserved.
113
IBM Global Services – Training Center - Hortolândia
Screen 2
114
IBM Global Services – Training Center - Hortolândia
Summary
TSO allows users to logon to z/OS and use a limited set of basic commands
in native mode.
ISPF provides utilities, an editor and ISPF applications to the user. To the
extent permitted by various security controls an ISPF user has full
access to most z/OS system functions.
115
IBM Global Services – Training Center - Hortolândia
116
IBM Global Services – Training Center - Hortolândia
Chapter 7 objectives
Be able to:
• Explain how JCL works with the
system, give an overview of JCL
coding techniques, and know a few
of the more important statements
and keywords
• Create a simple job and submit it
for execution
• Check the output of your job
through SDSF
117
IBM Global Services – Training Center - Hortolândia
What is JCL?
The details of JCL can be complicated but the general concepts are quite simple.
Also, a small subset of JCL
accounts for at least 90% of what is actually used. This chapter discusses selected
JCL
options.
118
IBM Global Services – Training Center - Hortolândia
//JOBNAME JOB
//STEPNAME EXEC
//DDNAME DD
//* comment - upper or lower case
/* ....end of JCL stream
119
IBM Global Services – Training Center - Hortolândia
JCL example
//MYJOB JOB 1
//MYSORT EXEC PGM=SORT
//SORTIN DD DISP=SHR,DSN=IBMUSER.AREA.CODES
//SORTOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
/*
120
IBM Global Services – Training Center - Hortolândia
We use JCL statements in this text; some z/OS users use the older term JCL card, even
though the JCL resides in a disk library.
121
IBM Global Services – Training Center - Hortolândia
JOB JCL statement //MYJOB JOB 1 is a job card with name MYJOB. The 1 is a job card
accounting field that can be subject to system exits that might be used for charging
system users. Some common JOB card operands that could be included are:
Example:
//MYJOB JOB 1,NOTIFY=&SYSUID,REGION=6M
122
IBM Global Services – Training Center - Hortolândia
EXEC statement
Region size
The EXEC JCL statement //MYSTEP EXEC has a stepname of MYSTEP. Following the
EXEC is either PGM=(executable program name) or a JCL PROC name. When a JCL
PROC is present, then the operands will be the variable substitutions required by the JCL
PROC. Common operands found on the EXEC PGM= statement are:
Example:
//MYSTEP EXEC PGM=SORT
123
IBM Global Services – Training Center - Hortolândia
JCL: DD statement
DD statement
DD name (referenced in the program)
DSN= (the data set name as cataloged on disk)
DD, the Data Definition, has significantly more operands than the JOB or EXEC
statements. The DD JCL statement can be involved with many aspects of defining or
describing attributes of the program inputs or outputs. Some common DD statement
operands are:
DSN= The name of the data set; this can include creation of temporary data
sets or a reference back to the data set name.
DISP= Data set disposition at step start (new, shr, old, mod), at step end (catlg,
keep, delete, pass) and if the step abnormally ends (catlg, keep,
delete,
pass).
SPACE= Amount of disk storage requested for a new data set.
SYSOUT= Defines a print location (and the output queue or data set).
VOL=SER= Volume name, disk name or tape name
UNIT= System disk, tape, special device type, or esoteric (local name).
DEST= Routes output to a remote destination.
DCB= Data set control block, numerous sub operands.
125
IBM Global Services – Training Center - Hortolândia
All JCL parameters are important, but the DISP function is perhaps the most important
for DD statements. The complete parameter has these fields:
The normal end parameter indicates what to do with the data set (the disposition) if the
current job step ends normally. Likewise, the abnormal end parameter indicates what to
do with the data set if the current job step abnormally ends.
The default disposition parameters (for normal and abnormal end) are to leave the data
set as it was before the job step started. (The catalog function was described previously.)
A main purpose of the DISP parameter is to advise the system about data set enqueuing
needed for this job to prevent conflicting use of the data set by other jobs.
126
IBM Global Services – Training Center - Hortolândia
New data sets can be created through JCL by using the DISP=NEW
parameter.
For a DISP=NEW request, you need to supply more information,
including:
• A data set name, DSN=
• The type of device for the data set, UNIT=sysda
• If a disk is used, the amount of space to be allocated for the
primary extent must be specified, SPACE=
• If it is a partitioned data set, the size of the directory must be
specified within the SPACE parameter
• Optionally, DCB parameters can be specified.
If the DISP parameter for a data set is NEW, then additional information is needed. This
includes:
• A data set name.
• The type of device for the data set.
• A volser if it is a disk or labeled tape.
If a disk is used, the amount of space to be allocated for the primary extent must be
specified.
Optionally, DCB parameters can be specified. Alternately, the program that will write
the data set can provide these parameters.
The DISP and data set names have already been described. Briefly, the other parameters
are:
Volser The format for this in a DD statement is VOL=SER=xxxxxx, where
xxxxxx is the volser. The VOL parameter can specify other
details,
which is the reason for the format.
Device type There are a number of ways to do this, but UNIT=xxxx is the most
common. The xxxx can be an IBM device type (such as 3390),
or a
specific device address (such as 300), or an esoteric name
defined by
the installation (such as SYSDA). A common convention uses
SYSDA to represent any available disk volume.
Member name Remember that a library (or partitioned data set, PDS) member can
be treated as a data set by many applications and utilities. The
format
DSNAME=ZPROF.LIB.CNTL(TEST) is used to reference a
specific
member. If the application or utility program is expecting a
sequential data set, then either a sequential data set or a
member of a
library must be specified. A whole library name (without a
specific
member name) can be used only if the program or utility is
expecting a 127
library name.
IBM Global Services – Training Center - Hortolândia
128
IBM Global Services – Training Center - Hortolândia
Continuation of JCL syntax involves a comma at the end of the last complete operand.
The next JCL line would include // followed by at least one space, then the additional
operands. JCL operand syntax on a continuation line must begin on or before column
sixteen.
An important feature of DD statements is the fact that a single ddname can have multiple
DD statements. This is called concatenation.
Concatenation applies only to input data sets. The data sets are automatically processed
in sequence. In the example, when the application program reads to the end of
MY.INPUT1, the system will automatically open MY.INPUT2 and start reading it. The
application program is not aware that it is now reading a second data set. This continues
until the last data in the concatenation is read; at that time the application receives an
end-of -file indication.
129
IBM Global Services – Training Center - Hortolândia
Some programs and tasks require a larger amount of JCL than a user can easily enter.
JCL for these functions can be kept in procedure libraries. A procedure library member
contains part of the JCL for a given task -- usually the fixed, unchanging part of JCL.
The user of the procedure supplies the variable part of the JCL for a specific job.
Such a procedure is sometimes known as a cataloged procedure. A cataloged procedure
is not related to the system catalog.
Much of this JCL should be recognizable now. New JCL functions presented here
include:
• PROC and PEND statements are unique to procedures. They are used to identify the
beginning and end of the JCL procedure.
• The PROC is preceded by a label or name; the name defined in the example on the slide is
MYPROC.
• JCL variable substitution is the reason JCL PROCs are used. &SORTDSN is the only
variable in this example.
130
IBM Global Services – Training Center - Hortolândia
In this example, we include the inline procedure from the previous slide in our job
stream.
•When MYJOB is submitted, the JCL from the example on the previous slide is
effectively
substituted for EXEC MYPROC. The value for &SORTDSN must be provided.
• SORTDSN and its value were placed on a separate line, a continuation of the
EXEC
statement. Notice the comma after MYPROC.
• //SYSIN DD * followed by the SORT control statement will be appended to the
substituted JCL.
131
IBM Global Services – Training Center - Hortolândia
When an entire JCL PROC statement needs to be replaced, then a JCL PROC
override
statement can be used. An override statement has the following form:
//stepname.ddname DD ...
132
IBM Global Services – Training Center - Hortolândia
Using SDSF
After submitting a job, it is common for z/OS users to use System Display and
Search Facility (SDSF) to review the job output for successful completion or
JCL errors.
SDSF is a software product whose primary purpose is to display printed output held
in the JES
spool area. Much of the printed output sent to JES by batch jobs (and other jobs) is
never
actually printed. Instead it is inspected using SDSF and deleted or used as needed.
133
IBM Global Services – Training Center - Hortolândia
Display Help
Input Output
SYSLOG Active Output Status Printer Initiator
Queue Queue
Panel Users Queue Panel Panel Panel
Panel Panel
Panel Panel
Job Output
Data Set Descriptor
Panel Panel
Output
Data Set
Panel
134
IBM Global Services – Training Center - Hortolândia
This is the SDSF primary options menu. Some of the options shown are:
LOG The system Log panel displays the log and lets you
search it. 135
PS
IBM Global Services – Training Center - Hortolândia
Selecting options from the task bar allows you to tailor the SDSF primary options
panel.
136
IBM Global Services – Training Center - Hortolândia
Screen 2
The first screen shown on the slide displays a list of the jobs we submitted and
whose
output we directed to the HELD (Class T) queue, as identified in the MSGCLASS=T
parameter on the job card. In our case only one job has been submitted and
executed.
Therefore, we only have one job on the Held queue.
Issuing a ? command in the NP column displays the output files generated by job
7359.
The second screen displays three ddnames: the JES2 messages log
file, the JES2 JCL file, and the JES2 system messages file. This option is useful
when
you are seeing jobs with many files directed to SYSOUT and you want to display
one
associated with a specific step. You issue an S in the NP column to select a file you
want.
To see all files, instead of a ?, type S in the NP column;
137
IBM Global Services – Training Center - Hortolândia
138
IBM Global Services – Training Center - Hortolândia
139
IBM Global Services – Training Center - Hortolândia
140
IBM Global Services – Training Center - Hortolândia
141
IBM Global Services – Training Center - Hortolândia
142
IBM Global Services – Training Center - Hortolândia
Utilities
• z/OS includes a number of programs useful in
batch processing called utilities.
• Utilities provide many small, obvious, and useful
functions.
• Customer sites often write their own utility
programs, many of which are shared by the z/OS
user community.
• Some examples of utilities:
• IEBGENER Copies a sequential data set
• IEBCOPY Copies a partitioned data set
• IDCAMS Works with VSAM data sets
The IEFBR14 is a very used utility to allocate and delete datasets on first step of a
job
143
IBM Global Services – Training Center - Hortolândia
System Libraries
z/OS has many standard system libraries, including:
These libraries are standard PDS data sets and are found on the system disk
volumes.
144
IBM Global Services – Training Center - Hortolândia
Summary
145
IBM Global Services – Training Center - Hortolândia
Summary - continued
146
IBM Global Services – Training Center - Hortolândia
147
IBM Global Services – Training Center - Hortolândia
148
IBM Global Services – Training Center - Hortolândia
In a z/OS system, data can be stored on a direct access storage device (DASD),
magnetic
tape volume, or optical media. The term DASD applies to disks or simulated
equivalents
of disks. All types of data sets can be stored on DASD, but only sequential data
sets can
be stored on magnetic tape. We discuss the types of data sets later in this module.
149
IBM Global Services – Training Center - Hortolândia
The heart of DFSMS is the Storage Management Subsystem (SMS). Using SMS, the
system programmer or storage administrator defines policies that automate the
management of storage and hardware devices. These policies describe data allocation
characteristics, performance and availability goals, backup and retention requirements,
and storage requirements for the system. SMS governs these policies for the system and
the Interactive Storage Management Facility (ISMF) provides the user interface for
defining and maintaining the policies.
The data sets allocated through SMS are called system-managed data sets or
SMS-managed data sets.
150
IBM Global Services – Training Center - Hortolândia
151
IBM Global Services – Training Center - Hortolândia
152
IBM Global Services – Training Center - Hortolândia
To use a data set, you first allocate it (establish a link to it), then access the data
using
macros for the access method that you have chosen.
153
IBM Global Services – Training Center - Hortolândia
You can specify the amount of space required in blocks, records, tracks, or cylinders.
When creating a DASD data set, you specify the amount of space needed explicitly (by
using the SPACE parameter), or implicitly (by using the information available in a data
class).
The system can use a data class if SMS is active even if the data set is not SMS managed.
For system-managed data sets, the system selects the volumes, saving you from having to
specify a volume when you allocate a data set.
If you specify your space request by average record length, space allocation is
independent of device type. Device independence is especially important to
system-managed storage.
Logical records, when located in DASD, tape, or optical devices, are grouped in physical
records named blocks (BLKSIZE). Each block of data on a DASD volume has a distinct
location and a unique address, thus making it possible to find any block without
extensive searching. Logical records can be stored and retrieved either directly or
sequentially.
The maximum length of a logical record (LRECL) is limited by the physical size of the
used media.
Space for a disk data set is assigned in extents. An extent is a contiguous number of disk
drive tracks (or cylinders). Data sets can increase in extents as they grow. Older types of
data sets can have up to 16 extents per volume. Newer types of data sets can have up to
128 or 255 extents.
154
IBM Global Services – Training Center - Hortolândia
Traditional z/OS data sets are record oriented. In normal usage, there are no byte stream
files such as are found in PC and UNIX systems. (z/OS UNIX has byte stream files, and
byte stream functions exist in other specialized areas. These are not considered to be
traditional data sets.)
In z/OS, there are no new line (NL) or carriage return and line feed (CR+LF) characters
to denote the end of a record. Records are either fixed length or variable length in a given
data set. When editing a data set with ISPF, for example, each line is a record.
Traditional z/OS data sets have one of five record formats, as shown on the slide. We must
stress the difference between a block and a record. In this discussion,
a block is what is written on disk, while a record is a logical entity.
F - Fixed This means that one physical block on disk is one logical
record and all the blocks/records are the same size. This
format is seldom used.
FB - Fixed Blocked This means that several logical records are combined into one
physical block. This can provide efficient space utilization and
operation. This format is commonly used for fixed-length
records.
V - Variable This format has one logical record as one physical block. The
application is required to insert a four-byte Record Descriptor
Word (RDW) at the beginning of the record. The RDW
contains the length of the record plus the four bytes for the
RDW. This format is seldom used.
The simplest data structure in a z/OS system is a sequential data set. It consists of one or
more records that are stored in physical order and processed in sequence. New records
are appended to the end of the data set.
An example of a sequential data sets might be an output data set for a line printer or a
deck of punch cards.
A z/OS user defines sequential data sets through job control language (JCL) with a data
set organization of PS (DSORG=PS), which stands for physical sequential. In other
words, the records in the data set are physically arranged one after another.
A partitioned data set adds a layer of organization to the simple structure of sequential
data sets. A PDS is a collection of sequential data sets, called members. Each member is
like a sequential data set and has a simple name, which can be up to eight characters long.
A PDS also contains a directory. The directory contains an entry for each member in the
PDS with a reference (or pointer) to the member. Member names are listed alphabetically
in the directory, but members themselves can appear in any order in the library. The
directory allows the system to retrieve a particular member in the data set.
A PDSE is a partitioned data set extended. It consists of a directory and zero or more
members, just like a PDS. It can be created with JCL, TSO/E, and ISPF, just like a PDS,
and can be processed with the same access methods. PDSE data sets are stored only on
DASD, not tape.
156
IBM Global Services – Training Center - Hortolândia
A PDS data set offers a simple and efficient way to organize related groups of sequential
files. A PDS has the following advantages for z/OS users:
• Grouping of related data sets under a single name makes z/OS data management
easier. Files stored as members of a PDS can be processed either individually or all
the members can be processed as a unit.
• Because the space allocated for z/OS data sets always starts at a track boundary on
disk, using a PDS is a way to store more than one small data set on a track. This saves
you disk space if you have many data sets that are much smaller than a track. A track
is 56,664 bytes for 3390 disk device.
•Members of a PDS can be used as sequential data sets, and they can be appended (or
concatenated) to sequential data sets.
• Multiple PDS data sets can be concatenated to form large libraries.
• PDS data sets are easy to create with JCL or ISPF; they are easy to manipulate with
ISPF utilities or TSO commands.
Limited directory size. The size of a PDS directory is set at allocation time. As the
data set grows, it can acquire more space in units of the amount you specified as its
secondary space. These extra units are called secondary extents.
However, you can only store a fixed number of member entries in the PDS directory
because its size is fixed when the data set is allocated. If you need to store more
entries than there is space for, you have to allocate a new PDS with more directory
blocks and copy the members from the old data set into it.
Lengthy directory searches. Entries are searched sequentially in alphabetical order. If the directory is very
large and the members small, it might take longer to search the directory than to
retrieve the member when its location is found.
In many ways, a PDSE is similar to a PDS. Each member name can be eight bytes long.
For accessing a PDS directory or member, most PDSE interfaces are indistinguishable
from PDS interfaces. Both PDS and PDSE data sets are processed using the same access 157
methods (BSAM, QSAM, BPAM).
IBM Global Services – Training Center - Hortolândia
VSAM
VSAM is Virtual Storage Access Method
VSAM provides more complex functions than other disk
access methods
VSAM record formats:
• Key Sequence Data Set (KSDS)
• Entry Sequence Data Set (ESDS)
• Relative Record Data Set (RRDS)
• Linear Data Set (LDS)
The term Virtual Storage Access Method (VSAM) applies to both a data set type
and the
access method used to manage various user data types.
As an access method, VSAM provides much more complex functions than other
disk
access methods. VSAM keeps disk records in a unique format that is not
understandable
by other access methods.
VSAM is primarily for applications. It is not used for source programs, JCL, or
executable modules. VSAM files cannot be routinely displayed or edited with ISPF.
You can use VSAM to organize records into four types of data sets: key-sequenced,
entry-sequenced, linear, or relative record. The primary difference among these
types of
data sets is the way their records are stored and accessed.
158
IBM Global Services – Training Center - Hortolândia
When you allocate a new data set (or when the operating system does), you must give the
data set a unique name.
A data set name can be one name segment, or a series of joined name segments. Each
name segment represents a level of qualification. For example, the data set name
VERA.LUZ.DATA is composed of three name segments. The first name on the left is
called the high-level qualifier (HLQ), the last name on the right is the lowest-level
qualifier (LLQ).
Segments or qualifiers are limited to eight characters, the first of which must be
alphabetic (A to Z) or special (# @ $). The remaining seven characters are either
alphabetic, numeric (0 - 9), special, a hyphen (-). Name segments are separated by a
period (.).
159
IBM Global Services – Training Center - Hortolândia
VTOC:
• Lists the data sets on a volume
• Lists the free space on the volume.
z/OS uses a catalog and a volume table of contents (VTOC) on each DASD to
manage
the storage and placement of data sets.
z/OS requires a particular format for disks, which is shown on the next slide.
160
IBM Global Services – Training Center - Hortolândia
VTOC
LABEL
(volser)
VTOC
MY.DATA YOUR.DATA free space
Extents
Record 1 on the first track of the first cylinder provides the label for the disk. It contains
the 6-character volume serial number (volser) and a pointer to the Volume Table Of
Contents (VTOC), which can be located anywhere on the disk.
The VTOC lists the data sets that reside on its volume, along with information about the
location and size of each data set, and other data set attributes. A standard z/OS utility
program, ICKDSF, is used to create the label and VTOC.
When a disk volume is initialized with ICKDSF, the owner can specify the location and
size of the VTOC. The size can be quite variable, ranging from a few tracks to perhaps
100 tracks, depending on the expected use of the volume. More data sets on the disk
volume require more space in the VTOC.
The VTOC also has entries for all the free space on the volume. Allocating space for a
data set (described later) causes system routines to examine the free space records,
update them, and create a new VTOC entry. Data sets are always an integral number of
tracks (or cylinders) and start at the beginning of a track (or cylinder).
161
IBM Global Services – Training Center - Hortolândia
A catalog describes data set attributes and indicates the volumes on which a data set is
located. Data sets can be cataloged, uncataloged, or recataloged. All system-managed
DASD data sets are cataloged automatically in a catalog. Cataloging of data sets on
magnetic tape is not required but usually it simplifies users jobs. All data sets can be
cataloged in a catalog.
In z/OS, the master catalog and user catalogs store the locations of data sets by name.
This means that data set names must be unique. Both disk and tape data sets can be
cataloged.
To find a data set that you have requested, z/OS must know three pieces of information:
• Data set name
• Volume name
• Unit (the volume device type, such as a 3390 disk or 3590 tape)
You can specify all three values on ISPF panels or in JCL. However, the unit device type
and the volume are often not relevant to an end user or application program.
162
IBM Global Services – Training Center - Hortolândia
Master Catalog
Data Set-SYS1.A1
or
HLQs (alias)
USERCAT.IBM IBMUSER...USER USERCAT.COMPANY
User Catalog User Catalog
volume (wrk002)
unit (3390) volume (wrk001)
unit (3390)
volume (012345)
IBMUSER.A2 IBMUSER.A1 unit (tape)
IBMUSER.A3 USER.A1 USER.TAPE.A1
SYS1.A1
A z/OS system always has at least one master catalog. If a z/OS system has a single
catalog, this catalog would be the master catalog and the location entries for all data sets
would be stored in it. A single catalog, however, would be neither efficient nor flexible,
so a typically z/OS system uses a master catalog and numerous user catalogs connected
to it as shown on the slide.
A user catalog stores the name and location of a data set (dsn/volume/unit). The master
catalog usually stores only a data set HLQ with the name of the user catalog, which
contains the location of all data sets prefixed by this HLQ. The HLQ is called an alias.
On the slide, the data set name of the master catalog is SYSTEM.MASTER.CATALOG. This
master catalog stores the full data set name and location of all data sets with a SYS1
prefix such as SYS1.A1. Two HLQ (alias) entries were defined to the master catalog,
IBMUSER and USER. The statement that defined that IBMUSER included the data set
name of the user catalog containing all the fully qualified IBMUSER data sets with their
respective location. The same is true for USER HLQ (alias).
When SYS1.A1 is requested, the master catalog returns the location information,
volume(WRK001) and unit(3390), to the requestor. When IBMUSER.A1 is requested,
the master catalog redirects the request to USERCAT.IBM, then USERCAT.IBM returns
the location information to the requestor.
163
IBM Global Services – Training Center - Hortolândia
Dasd Capacity
Track/Cyl 15 15 15 15 15 15 15
164
IBM Global Services – Training Center - Hortolândia
165
IBM Global Services – Training Center - Hortolândia
Objetivos:
166
IBM Global Services – Training Center - Hortolândia
167
IBM Global Services – Training Center - Hortolândia
168
IBM Global Services – Training Center - Hortolândia
ƒDATABASE:
Conforme falamos anteriormente, tudo que queremos monitorar via TWS, temos que
definir no database.
Definimos todas as workstations que este OPC vai ter, vai utilizar.
É cada passo que uma aplicação tem que caminhar dentro do sistema até a sua
conclusão (término de processamento OK. É cada step dentro de uma aplicação.
Exemplo: Assim como um step dentro do JCL de um job, é um passo para que após cada
step o job complete OK, a workstation tem o mesmo significado dentro de uma
aplicação.
169
IBM Global Services – Training Center - Hortolândia
As work stations do tipo C são as únicas que enviam jobs do TWS para executar
na CPU. As do tipo P são as criadas para enviar listagens para as printer´s e as
demais são criadas para outras atividades, tipo G.
Chegamos então à conclusão que temos três tipos de work stations, que podem
ter cinco modelos que são de CPU (tipo C), as de impressão (tipo P) e as work
stations de preparação de dados, de interferência manual e do tipo dummy´s (tipo
G).
170
IBM Global Services – Training Center - Hortolândia
OBS: Quando digo podemos criar tantas work stations quanto precisarmos,
estou me referindo ao coordenador de TWS e não a nós monitores de sistemas.
Da mesma forma para tudo que formos criar no database do TWS.
171
IBM Global Services – Training Center - Hortolândia
O LTP é o meu plano para um determinado período de tempo, maior que o plano
diário. É uma forma que o TWS nos permite visualizar o que vai acontecer nos
próximos, por exemplo, 30 dias. Com isto é possível programar o sistema para
futuras mudanças em um determinado dia e hora. É também o local onde, ao
rodar diariamente a minha aplicação geradora do plano diário, o sistema vai
buscar todas as aplicações que serão executadas neste próximo plano diário
que está sendo gerado.
É o meu plano de máquina, que foi gerado por um determinado período, como
por exemplo por um período de 24 horas. Ou seja, estou informando ao
sistema quais as aplicações que serão executadas dentro deste período
gerado para as próximas 24 horas.
Esta seleção de aplicações que serão executadas neste próximos período de 24
horas é selecionada conforme as suas definições que foram feitas no database
dentro das descrições das aplicações.
172
IBM Global Services – Training Center - Hortolândia
O MCP nos permite também, conforme o próprio nome indica, modificar o meu
plano corrente mesmo depois que el foi gerado, como por exemplo incluir uma
nova aplicação, modificar uma aplicação que já foi incluída na geração do plano
corrente, deletar uma aplicação inteira ou somente uma operação desta
aplicação, modificar predecessores ou sucessores, time, e também monitorar os
jobs que estão em erro.
É a base da nossa monitoração, pois é o MCP que nos permite "conversar" com o
OPC. É monitorado através de telas, que nos permite interagir com todas as
aplicações que estão executando ou aguardando algum pré-requisito para a sua
execução.
173