Professional Documents
Culture Documents
Mainframe - Parte 1
Mainframe - Parte 1
z/OS
© IBM Corporation
What is z/OS?
Ideally suited for processing large workloads for many concurrent users
Designed for:
2 © IBM Corporation
Hardware resources managed by z/OS
Mainframe computer
(CPU, processor
storage)
z/OS
running
here...
System Console
(hardware)
Master Console
(z/OS)
Operator Console
... Director links
(z/OS) mainframes with
DASD controllers
Tape drive
Tape
DASD cartridges
controller
Disk storage
(DASD volumes)
3 © IBM Corporation
Virtual storage and address space concept
31-bit addresing
Each user or separately running program is (MVS/XA)
represented by an address space (each user 16 MB
The “Line”
gets a limited amount of private storage) 24-bit addresing
(MVS)
4 © IBM Corporation
How virtual storage works
5 © IBM Corporation
z/OS address spaces
z/OS and its related subsystems require address spaces of their own to
provide a functioning operating system:
– TSO/E address spaces are created for every user who logs on to z/OS
6 © IBM Corporation
Introduction to z/OS Basics
© IBM Corporation
How do we interact with z/OS?
accessing many of the most Enter an 'S' before each option desired below:
commonly used z/OS functions. -Nomail -Nonotice -Reconnect -OIDcard
PF1/PF13 ==> Help PF3/PF15 ==> Logoff PA1 ==> Attention PA2 ==> Reshow
You may request specific help information by entering a '?' in any entry field
8 © IBM Corporation
General structure of ISPF panels
Action Menu Utilities Compilers Options Status Help
Bar ---------------------------------------------------------------------------
ISPF Primary Option Menu
9 © IBM Corporation
Example: Option 1 - VIEW
10 © IBM Corporation
Example: Option 1 - VIEW
11 © IBM Corporation
Example: Option 3 - UTILITIES
12 © IBM Corporation
Introduction to z/OS Basics
© IBM Corporation
What is a data set? A data set is a collection of logically related data records
stored on one disk storage volume or a set of volumes.
Using a data set To use a data set, you first allocate it.
Access Method Defines the technique used to store and retrieve data.
Dataset Naming
14 © IBM Corporation
Data set record formats
block block
FB record record record record record record
Fixed blocked records. BLKSIZE = n * LRECL
15 © IBM Corporation
Types of data sets
Sequential
Partitioned
16 © IBM Corporation
Locating a dataset in MVS - Catalogs and VTOCs
Catalog
Structure
17 © IBM Corporation
Data Facility Subsystem Managed Storage (DFSMS)
18 © IBM Corporation
VSAM
19 © IBM Corporation
Introduction to z/OS Basics
© IBM Corporation
What is JCL?
Job control language (JCL) tells the system what program to execute and
provides a description of program inputs and outputs.
There are three basic JCL statements: JOB, EXEC e DD
Exemplo
2 © IBM Corporation
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:
Receives jobs into the operating system
Schedules them for processing by z/OS
Controls their output processing
SUBMIT
JOBs
Printer
3 © IBM Corporation
SDSF: Primary option menu
4 © IBM Corporation
SDSF: Status panel
5 © IBM Corporation
Introduction to z/OS Basics
© IBM Corporation
Example of online processing: a travel agency
WAP HTTP
Travel Agency
7 © IBM Corporation
CICS in a z/OS system
z/OS
Transactional
system
Application
Program DATA
User
8 © IBM Corporation
Languages & Platforms
Languages: Platforms:
- COBOL - zSeries (z/OS,
- OO COBOL OS/390, VSE)
- C - Intel servers
- C++ - TXSeries (AIX, HP-
- JAVA (JCICS) UX, Solaris and
Windows)
- PL/I
- Assembler
9 © IBM Corporation
BMS macros: a form of assembler language
The MAPS are composed of three simple macros:
DFHMSD – name of mapset
DFHMDI – name of map identification
DFHMDF – field screen definitions and location
Example
ORCHM01 DFHMSD TYPE=MAP,MODE=INOUT,CNRL=FREEKB,LANG=COBOL,TIOAPFX=YES
ORCHM01 DFHMDI SIZE=(24,80)
DFHMDF POS=(01,01),LENGTH=01,ATTRB=(ASKIP,DRK,FSET), x
INITIAL=‘1’
DFHMDF POS=(01,25),LENGTH=3,ATTRB=(ASKIP,BRT), x
INITIAL=‘PURCHASE ORDER - - - FILE INQUIRY’
DFHMDF POS(03,30),LENGTH=13,ATTRB=ASKIP, x
INITIAL=‘ORDER NUMBER ’
ORDER# DFHMDF POS=(03,44),LENGTH=10,ATTRB=(NUM,BRT,IC)
DFHMDF POS=(04,32),LENGTH=11,ATTRB=ASKIP,INITIAL=‘DEPARTMENT’
*
*
*
DFHMSD TYPE=FINAL
10 © IBM Corporation
Example of CICS application user screen
11 © IBM Corporation
Introduction to z/OS Basics
© IBM Corporation
What is a database?
A database provides for the storing and control of business information, independent
from (but not separate from the processing requirements of) one or more applications.
13 © IBM Corporation
DB2 Administration (transactional interfaces)
Query Management Facility (QMF)
Is a tightly integrated, powerful, and reliable tool that performs query and reporting for DB2. It
offers an easy-to-learn, interactive interface. Users with little or no data processing experience
can easily retrieve, create, update, insert, or delete data that is stored in DB2.
A SQL interface through TSO providing a means for a transactional facility used by
DBAs. This requires knowledge of ISPF and basic PDS.
14 © IBM Corporation
The SPUFI - After entering an SQL statement:
15 © IBM Corporation
Introduction to z/OS Basics
Security on z/OS
© IBM Corporation
RACF
17 © IBM Corporation
User Identification
18 © IBM Corporation
RACF Structure
Userid
Group
– Every userid belongs to at least one group
– Group structures are often used for access to resources
19 © IBM Corporation