Vous êtes sur la page 1sur 35

MVS Basics

1. INTRODUCTION TO IBM LARGE SYSTEMS................................................................................................ 3


Topics in this session............................................................................................................................................ 3
Session Goals: ...................................................................................................................................................... 3
INTERNATIONAL BUSINESS MACHINES - AN OVERVIEW...........................................................................................3
IBM SOFTWARE PRODUCTS......................................................................................................................................4
Small Systems ....................................................................................................................................................... 4
Workstations......................................................................................................................................................... 4
Departmental Machines ....................................................................................................................................... 4
Large Systems....................................................................................................................................................... 5
IBM LARGE SYSTEMS...............................................................................................................................................5
Typical Configurations......................................................................................................................................... 5
IBM LARGE SYSTEMS - PROCESSORS........................................................................................................................7
IBM LARGE SYSTEMS - DASD AND CONTROLLERS..................................................................................................8
IBM LARGE SYSTEMS - OFFLINE MEDIA DEVICES....................................................................................................8
IBM LARGE SYSTEMS - OTHER HARDWARE .............................................................................................................9
IBM LARGE SYSTEMS - SOFTWARE OVERVIEW......................................................................................................10
From a user's point of view... ............................................................................................................................. 10
THE EVOLUTION OF MVS/ESA ...............................................................................................................................10
DISCUSSION TOPICS - SESSION 1..............................................................................................................................11
2. CONCEPTS .......................................................................................................................................................... 12
Topics in this session.......................................................................................................................................... 12
Session Goals: .................................................................................................................................................... 12
INTRODUCTION TO OPERATING SYSTEMS................................................................................................. 12
THE VON NEUMANN COMPUTING MODEL ................................................................................................................12
THE ROLE OF AN OPERATING SYSTEM.....................................................................................................................13
PROCESSOR MANAGEMENT.....................................................................................................................................13
The problem: ...................................................................................................................................................... 13
MEMORY MANAGEMENT ........................................................................................................................................13
The problem: ...................................................................................................................................................... 13
Options: .............................................................................................................................................................. 13
Real memory implementations: .......................................................................................................................... 14
Virtual memory implementations: ...................................................................................................................... 14
INPUT-OUTPUT MANAGEMENT ...............................................................................................................................14
The problem: ...................................................................................................................................................... 14
A solution: .......................................................................................................................................................... 14
SPOOLING................................................................................................................................................................15
A special I/O problem: ....................................................................................................................................... 15
A solution: .......................................................................................................................................................... 15
INFORMATION MANAGEMENT.................................................................................................................................15
The problem: ...................................................................................................................................................... 15
Solutions:............................................................................................................................................................ 16
INTERFACE TO USERS AND APPLICATIONS..............................................................................................................16
THE MVS OPERATING SYSTEM....................................................................................................................... 17
J OBS AND J OBSTEPS.................................................................................................................................................17
ADDRESS SPACES....................................................................................................................................................18
THE CHANNEL SUBSYSTEM.....................................................................................................................................18
SPOOLING................................................................................................................................................................19
THE STORAGE MANAGEMENT SUBSYSTEM.............................................................................................................19
TSO, J ES2, SYSTEM UTILITIES AND MACROS..........................................................................................................20
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
DISCUSSION TOPICS - SESSION 2..............................................................................................................................21
3. DATA MANAGEMENT...................................................................................................................................... 22
Topics in this session.......................................................................................................................................... 22
DATASETS...............................................................................................................................................................22
DATASET NAMES....................................................................................................................................................22
DATASET ACCESS ...................................................................................................................................................23
DATASET ORGANIZATION.......................................................................................................................................23
ALLOCATING A DATASET ........................................................................................................................................24
OFFLINE MAGNETIC MEDIA ....................................................................................................................................26
ACCESSING DATA....................................................................................................................................................27
EFFICIENCY CONSIDERATIONS.................................................................................................................................28
DISCUSSION TOPICS - SESSION 3..............................................................................................................................28
4. WORKING ON MVS AND USEFUL TIPS....................................................................................................... 29
Topics in this session.......................................................................................................................................... 29
A USER PERSPECTIVE OF MVS................................................................................................................................29
USEFUL TIPS ...........................................................................................................................................................30
COMMON ABEND CODES.........................................................................................................................................30
SHARING DATASETS................................................................................................................................................31
BATCH VERSUS ONLINE..........................................................................................................................................31
USING SDSF...........................................................................................................................................................32
WATCH YOUR DATASETS .......................................................................................................................................32
LEARN INSTALLATION CONVENTIONS.....................................................................................................................32
HELP AND MANUALS ..............................................................................................................................................32
5. GLOSSARY.......................................................................................................................................................... 33

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

1. Introduction to IBM Large Systems
Topics in this session

IBM - the company

IBM Large Systems

Session Goals:

Historical Perspective

Familiarity with Large Systems terminology

International Business Machines - An Overview

Founded in 1913 in Endicott, New York as CTR (Computing,
Tabulating,Recording )
Became IBM in 1924
The Watsons (TJ Sr(1914- 1956) , TJ J r(1956-1974) ) were key figures in IBM
till the 70's
Status as of early 1995:

Headquartered at Armonk, New York
World's largest IT company (1996 sales over US$ 72 billion)
Chairman: Louis V. Gerstner

Worldwide presence
Significant investor in Research and Development
Has a stake in all aspects of IT:

Desk tops (The PC family. Intel, PowerPC based)
Workstations (RS/6000 family)
Departmental machines (The AS/400 family)
Large Systems (ES/9000 family, ES/3090 family, 9672 R models, SP2
family)
Peripherals (Printers, disks, magnetic and optical devices,displays)
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Semiconductor devices (processors, memory, other chips)
Networking products (controllers, routers, bridgers, adapters)
Services (Education, systems integration, consulting)
Software

In the top 5 in most of these areas


IBM Software Products
Small Systems
Operating Systems (PC DOS, OS/2, AIX for PCs)
Language compilers (C Set, C Set ++, APL2, PL/I, REXX)
Development tools (Visual Age, Visual Gen)
Database and Transaction Management (DB2/2, CICS/2, IMS CS/2)
Network software (LAN manager, LAN Netview)
Workstations
Operating Systems (AIX/6000)
Language compilers (C Set, C Set ++, XL Fortran/6000)
Development tools (CMVC, Powerbench)
Database and Transaction Management (DB2/6000, CICS/6000)
Network software (AIX SNA Server / 6000, AIX Lan Management
Utilities/6000)

Departmental Machines
Operating Systems (OS/400)
Language compilers (COBOL. REXX, RPG, C SET++, Integrated
Language Environment)
Development tools (VRPG, Client Series Application Development Toolset)
Database and Transaction Management (DB2/400, CICS/400)
Network software (LAN Server/400, Client Access/400, LANRES/400)
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

Large Systems
Operating Systems (MVS/ESA, VM/ESA, VSE/ESA, TPF)
Language compilers (VS COBOL/II, COBOL/370, PL/I, C/370, REXX,
VS/FORTRAN)
Development tools (ISPF, CSP, CODE/370)
Database and Transaction Management (DB2, IMS/ESA DM,
CICS/ESA,IMS/ESA TM)
Network software (VTAM, NCP. RSCS, NPSI, Netview)

IBM Large Systems
Based on S/390 architecture (preceded by S/360, S/370, S/370-XA,ESA/370)
Wide range of hardware platforms

ES/9000 family (9221, 9121, 9021)
9672 R models
Older machines (ES/3090, ES/4381, 30XX, 43XX. 370, 360)
Plug Compatible Manufacturers (Amdahl, Fujitsu, Hitachi)

Wide range of software
IBM software
Vendor software (Computer Associates, Legent, Compuware, Candle
Corporation, SAP..)

Strengths
Reliability
Security
Large capacity


Typical Configurations

Large databases, transaction processing environments

MVS/ESA, DB2, CICS
MVS/ESA, IMS/ESA DB, CICS
MVS/ESA, IMS/ESA DB, IMS/ESA TM
MVS/ESA, DB2, IMS/ESA TM

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Extremely high transaction processing environments

TPF

Medium databases, transaction processing environments

MVS/ESA, VSAM, CICS
VM/ESA, DB2 VM/VSE, CMS
MVS/ESA, VSAM, ISPF
VSE/ESA, DB2 VM/VSE, CICS

Interactive, end-user computing environments

VM/ESA, CMS, REXX
MVS/ESA, ISPF, REXX

Batch intensive environments

MVS/ESA, J ES2
MVS/ESA, J ES3


Multiple operating systems environment

VM/ESA
PR/SM

Client/server environment

Clients: OS/2 with PM, CICS/2, DB2/2 or DOS/Windows with CICS/2,
DB2/2, or other vendor products
Servers: MVS/ESA or VM/ESA with DB2, CICS, IMS

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

IBM Large Systems - Processors

9221 family

Models like 110, 112, 114, 120, 130, 150, 170, 191, 200, 201, 211,221, 421
Air cooled, rack mounted
1 to 2 processors
16MB to 512 MB central storage
0 MB to 496 MB expanded storage
8 to 24 channels
TCM based or CMOS based technology

9121 family

Models like 190, 210, 260, 311, 320, 411, 440, 480, 490, 511,521, 522, 570, 610, 622,
732, 742
Air cooled, frame mounted
1 to 4 processors
16MB to 512 MB central storage
0 MB to 2048 MB expanded storage
8 to 96 channels
TCM based technology

9021 family

Models like 330, 340, 500, 520, 580, 620, 640, 660, 711, 720, 742,820, 860, 900,
932, 942, 952, 962, 972, 982, 9X2
Water cooled, frame mounted
1 to 10 processors
Upto 2 GB central storage
Upto 8 GB expanded storage
Upto 256 channels
TCM based technology

9672-R family

Three generations, 4 sub-families (Rx1, (Rx2,Rx3), Rx4)
Models like R11, R21, R31, R41, R51, R61, RA2, R12, R22, R32, R42,
R52, R62, R53, R63, RX3, RA4, RB4, R14, R24, R34, R44, RX4, RY4
Air cooled, rack mounted
1 to 10 processors
Upto 2 GB central storage
Upto 48 channels
CMOS based technology
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

IBM Large Systems - DASD and controllers

DASD (Count-Key-Data (CKD) ) devices

3380 family (eg. models D, J , K), with 47476 bytes per track, 615 MB to
1845 MB per volume
3390 family (eg. models 1, 2, 3, 9), with 56664 bytes per track, 924 MB to
8315 MB per volume
Vendor products emulating one of the above (StorageTek, Hitachi,EMC2)

DASD Controllers

3880 family
3990 family
Vendor products (Hitachi, EMC2)

IBM Large Systems - Offline Media devices

Cartridge devices

3480 family (18 tracks, 38 Kbpi, approx 210 MB per volume)
3490 family (18 or 36 tracks, 38 Kbpi or 76 Kbpi, 210MB or 420 MB per
volume)
Improved Data Recording Capability (IDRC) available for both
devices, to almost double the data storage
Automated Cartridge Loader (ACL) available for both devices
1995 announcement: Magstar drives, upto 10 GB per volume.

Automated Tape Libraries (ATL)

3495 system from IBM (Linear Array, robot on rails)
Nearline system from StorageTek (Hexagonal configuration, central robot
arm)

Optical Storage Devices

3995 system from IBM
Software support via Object Access Method (OAM)

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

IBM Large Systems - Other Hardware

Printers

Line printers (1403 class, like 4245, 6262)
Page printers (3800 class, like 3803, 3812, 3820, 3825)

Terminals

3270 family (3277, 3278, 3278-2, 3278-5, 3279, 3279-G)
Emulators (PC/3270, OS/2 communications manager)
Vendor products for both the above
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

IBM Large Systems - Software Overview
From a user's point of view...

TSO/E You log on to this and do interactive computing
ISPF You use this as a panel driven interface for TSO/E
J CL You create batch jobs using this language
DCF You do document processing with this product
GDDM You do graphics processing with this product
DB2 This is the relational DBMS
IMS DB This is the hierarchical DBMS
CICS This is a Transaction Processing system
IMS TM This is another Transaction Processing system
CSP This is a 4 GL application development / execution environment
RACF This product manages access security
VTAM This product controls all networking
J ES2 This component of MVS/ESA manages all foreground and batch
tasks
DFSMS This component of MVS/ESA manages all data
REXX This is a powerful shell programming language

The evolution of MVS/ESA

Year Event

1964 System 360 announced
1965 Basic Operating System (BOS)
1966 Primary Control Program (PCP), Multiprogramming with Fixed
number of Tasks (OS/MFT), Multiprogramming with Variable
number of Tasks (OS/MVT)
1966-70 Houston Automatic Spooling Program (HASP), Time Sharing Option
(TSO),
Telecommunications Access Method (TCAM),Customer Information
Control
System (CICS), Information Management System (IMS)
1970 System 370 announced
1972 Operating System / Virtual Storage 1 and 2 (OS/VS1, OS/VS2)
1974 Multiple Virtual Storage (MVS)
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
1974-80 J ob Entry Subsystems 2 and 3 (J ES2, J ES3), Resource Access Control
Facility (RACF),
Virtual Telecommunication Access Method(VTAM)
1981 System 370 Extended Architecture (370-XA) and MVS/XA
announced
1983 Database 2 (DB2) announced
1988 Enterprise Systems / 370 Architecture (ESA/370), MVS/ESA
announced
1990 System 390 announced
1993 MVS Open Edition (POSIX features)
1995 MVS/ESA 5.2.2 with full POSIX, XPG4, X/OPEN
1996 OS/390 Release 1 - Open Server for Network computing .
1997 OS/390 Release 3 compliance - an integrated enterprise server
operating system.
Uniqule suited to integrate todays heterogeneous and multi-vendor
environment.


Discussion topics - Session 1


What are the first words that come to your mind when someone says,
'IBM Mainframes'?
Where do you think IBM Large Systems are headed?
Who do you think are the Large systems users today?

End of Session 1

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

2. Concepts
Topics in this session

Introduction to Operating Systems
The MVS/ESA Operating System
Session Goals:

Introduce basic Operating System concepts
Introduce MVS/ESA

Introduction to Operating Systems

We will talk about:

The von Neumann computing model
The role of an Operating System
Processor Management
Memory Management
Input/Output Management
Spooling
Information Management

The von Neumann computing model

Most common model for computing systems
Proposed by J ohn von Neumann in the 1940's
Defines a computing system in terms of elements:

Processor
Memory
Control element

A program (code and data) must be placed in memory by the control element
After this, the processor executes the program one instruction at a time
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

The role of an Operating System

Manage hardware resources in the computing system:
Processor
Memory
Input/Output
Printers
Information
Provide services to application programs and end-users through well defined
interfaces
Do all this, as efficiently as possible
Processor Management
The problem:

The computing model says that at any instant, only one task can be
executing on a given processor (the 'active' task)
What if the task is waiting for a time-consuming operation, say an I/O?
Processors are expensive, must be utilized as fully as possible

A solution

Offload I/O to dedicated I/O processors
Have a large number of tasks in a 'ready to run' state
Other tasks are in 'wait' states, possibly doing I/O
Net result: The operating system has a wide range of options in
choosing the next task to execute
Price: Increased complexity

Memory Management
The problem:
All code and data for a given task must be in memory for a task to be executable
Options:

Place tasks in 'real' memory
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Place tasks in 'virtual' memory
Real memory implementations:

Code and data are in real memory
Size of code and data limited by size of installed memory
Good performance, low overhead
Possible wastage of memory

Virtual memory implementations:

Based on the assumption that for a given task, not all code and data need
to be in real memory all the time
Implemented as a combination of real and auxiliary (disk) storage
The operating system takes the responsibility of bringing in the required
parts of a task into real memory, when required
The task is completely unaware of this, and sees only virtual memory.
It may of course experience delays
Advantage: Code and data size now independent of real memory
Disadvantage: Increased overhead, poorer performance



Input-Output Management
The problem:

Applications should not worry about device characteristics
I/O device speeds are typically 1000 times slower than processors
Processors too powerful and expensive to waste on I/O
A solution:

Let all I/O be handled by a specialized system (The I/O subsystem)

The I/O subsystem:

Consists of I/O processors, device controllers and devices
Receives an I/O request in a standard format
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Handles all interactions with the actual devices
Moves data between memory and the device and vice-versa
Notifies the processor at the end of the operation

While the I/O subsystem is processing the request, the processor is free to execute
other work


Spooling

A special I/O problem:

Some devices (like printers) can handle only one job at a time
Requests for such 'unit record' devices must be serialised


A solution:

'Spooling' (Simultaneous Peripheral Operation On Line)
All output to spooled devices is first written to disk
The spool manager then provides facilities like:

Release output to actual printers
Selective delete processing
Error handling
Recovery and restart




Information Management
The problem:

The application is interested in information, not data
Organising and presenting data in a useful form

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Solutions:

Files and File systems
Access methods or device drivers
System Managed Storage


Interface to Users and Applications


User interface is of several kinds:

Online user interface
Batch user interface
Application programming interface

Online user interface:

is the 'face' of the operating system
is where small systems are far ahead of large systems

Batch user interface:

May allow batch and online to interact
Is often the 'workhorse' of large systems

Application programming interface

Usually by means of callable services

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

The MVS Operating System

Let's apply the same concepts to MVS...


Processor Management: J obs and J obsteps
Memory Management: Address Spaces
I/O Management: Channel Subsystem
Spooling: J ob Entry Subsystem
Information Management: Storage Management Subsystem
User interface: TSO, J ES2, system utilities and macros

Jobs and Jobsteps

"J OB" in MVS is a generic term for any work to be performed

A J ob could be:

An online user
A system task
A subsystem
A 'real' batch job

A J obstep is the execution of a single program within a job

A job consists of one or more jobsteps

Examples of jobsteps:

The terminal monitor program for an online user
A control program for a system task or subsystem
A user program or system utility

A jobstep (task) could create several sub-tasks. It is then responsible for managing
all these sub-tasks
The J ob Entry Subsystem manages all jobs and jobsteps

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Address Spaces

An address space is the amount of virtual storage seen by a job

MB in MVS/SP and older systems
GB in MVS/XA and MVS/ESA

Each job executes in an address space

Online users each have a Time Sharing User (TSU) address space

Batch jobs execute in an Initiator address space

An address space is organized as a set of:

Segments (1MB each)
Pages (256 pages per segment, each page is 4K)

An address space is either:

Swapped out (all segments are on auxiliary storage)
Swapped in (at least one segment is in real storage)

An address space:

Contains read-only copies of operating system areas
Competes with other address spaces for resources
Is normally isolated from other address spaces


MVS/ESA provides data spaces and hiperspaces for additional, data-only use
by applications

The Channel Subsystem

Handles all Input/Output
An application needing to perform I/O, can:

Interface directly with the channel subsystem (channel programming)
Use standard operating system routines (access methods)
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

In either case, the channel subsystem:

Receives I/O instructions
Receives an associated set of commands (the channel program)
Communicates the request to the appropriate device
Moves data from the devices to memory or vice-versa
Signals completion of the operation

An access method is preferred because:

The application is shielded from device details
A standard interface is provided by MVS

Spooling

Managed by the J ob Entry Subsystem (J ES)
All outputs intended for printing are first stored in special, 'spool' DASD
Can be viewed and manipulated from an online session using
the System Display and Search Facility (SDSF)
Outputs are normally in the 'Held' queue, unless released to the 'Output'
queue
J ES also uses the spool for managing batch queues




The Storage Management Subsystem



Creates and manages the MVS 'file system'
All information is in the form of 'datasets'.
Information about datasets is in Catalogs, VTOCs and Volume labels
Datasets allow various modes of access and organization:

1. Sequential
2. Random
3. Direct
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

SMS allows actions on datasets like:

Allocate
Delete
Backup
Migrate
Recall


The MVS 'file system' was largely non-hierarchical till recently
The new MVS provides a POSIX compliant file system in addition to the
traditional file system



TSO, JES2, System utilities and macros


The MVS online interface is usually via TSO

TSO is line mode, command driven
ISPF is used to provide a screen based, menu driven front-end

J ES2 manages all batch work

TSO users can submit jobs to batch via TSO SUBMIT command
Can use SDSF to view and manipulate batch

Application programming interface

System utilities and services available
Assembler interface necessary for most services

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

Discussion topics - Session 2

.
What are the fundamental differences in the design philosophy of a single user
operating system like MS-DOS and a complex operating system like MVS/ESA?

MVS/SP provided a 16 MB address space with 24 address bits. MVS/XA
and MVS/ESA provide a 2 GB address space with 31 address bits. What
compatibility issues would you consider, to execute MVS/SP code on
MVS/ESA?

Hint: Think of the addressing mode (AMODE), and the residence mode
(RMODE).


End of Session 2
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

3. Data Management
Topics in this session
Datasets and Catalogs
System Managed Storage
Offline Magnetic Media
Accessing and using data
Efficiency considerations


Session Goals:
How to define and use data on MVS
Datasets

Named collection of data
Resides on peripherals like DASD, tape
Treated as a single entity by the operating system and applications
Typical operations on a dataset include:

Allocate
Write
Read
Update
Copy
Backup / Archive
Delete
Restore
Migrate / Recall

Dataset Names

A qualifier:

Is 1 to 8 characters long
Begins with an alphabet (A-Z)
Consists of Alphabets (A-Z), Numerals (0-9), National Characters(#, @,
$)
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Looks like: ABDCE, B1290, DT951010

A dataset name:

Consists of one or more qualifiers
Each qualifier is separated from the other by a period '.'
Is 1 to 44 characters long for DASD datasets
Is 1 to 17 characters long for tape datasets
Looks like: SYS2.USER.DOC, USERID.BACKUP.DT181095, A,
A.A.A.A.A.A

The first qualifier is called the High Level Qualifier (HLQ)
Note: No hierarchy is implied by the qualifiers

Dataset Access

To be easily accessible, a dataset must be retrievable by name
Two modes of retrieval allowed:

By name, if names are unique
By name and volume name, if names are not unique

This implies two levels of location information:

Global (in Catalogs)
Local (using the Volume Table of Contents or VTOCs, or tape labels)

Catalogs form a tree structure
HLQs form the basis of the pointers from the root ('Master Catalog') to the
leaves ('User Catalogs')

Dataset Organization

Physical Sequential (PS)

Records stored in time order of writing
Access is sequential
Can reside on DASD and tape (tape datasets are always PS)
Located by name: eg., BTPROJ .SEQ.DATASET

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Partitioned (PDS or PO)

Collection of one or more PS datasets ('members'), related by a directory
One level hierarchy - all members have the same characteristics
The PDS name alone is stored in the Catalog / VTOC
Member names and location information in the directory
A member name follows the same rules as a qualifier
Can reside only on DASD
Located by name +member name: XYPROJ .USERID.NOTES(N1234567)

Partitioned - Extended (PDSE)

PDS-like in organization
Eliminates several problems associated with PDSs
Available only in later MVS versions (post-1989)
Must always be cataloged, SMS managed

Virtual Storage Access Method (VSAM)

Entry Sequenced (ESDS)
Key Sequenced (KSDS)
Relative Record (RRDS)
Linear (LDS)
Variable length Relative record (VRRDS)

Others

Direct (DA)
Indexed Sequential (IS)


Allocating a dataset
570275

Datasets need to be pre-allocated before use
Allocation can use installation defined defaults
Parameters for allocation:

Name
Location
Size
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Attributes

Name: As described earlier
Location:

Could be a volume name +unit type - Eg,
VOL=SER=CART01,UNIT=CART
Could be a SMS storage class name - Eg, STORCLAS=DEVSC
Could use system default location

Size, in blocks, tracks or cylinders

Primary allocation
Secondary allocation
Number of directory blocks (for PDSs)

Attributes

Block size -how many records in one IO?
Record length -howmany byte in a record?
Record format -Fixed,Variable,Undefined?
SMS Management Class name
SMS Data Class name

Examples:

DD DSN=USERID.TEMP,SPACE=(CYL,(1,1))
Note: Uses system defaults

DD DSN=USERID.TEMP,DISP=(NEW,CATLG),SPACE=(CYL,(1,1)),
STORCLAS=DEVSC,DATACLAS=PS,MGMTCLAS=STANDMC
Note: Uses SMS constructs

DD DSN=USERID.TEMP,DISP=(NEW,CATLG),SPACE=(CYL,(1,1)),UNIT=DISK,
VOL=SER=WORK01,DCB=(DSORG=PS,LRECL=80,BLKSIZE=9040,RECFM=FB)
Note: Specifies all details






I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m


System Managed Storage


Older MVS systems expect the user and the storage administrator to manage
data manually
System Managed Storage provides:

Policy based storage administration
Device independent dataset usage
Automated data management

SMS managed datasets must:

be cataloged
reside on a SMS managed volume
have SMS constructs like storage class, data class, management class
and storage group associated with them

New functionality offered only for SMS managed data. Eg.,

PDSE
Data compression

Offline Magnetic Media

Tape and Cartridge datasets
Several recording modes and geometries:

7 or 9 track tapes
18, 36 track cartridges
128 track cartridges (Magstar only)

Data compression options:

No compression on tapes
Improved Data Recording Capability (IDRC) for 18, 36 track cartridge

Files and Volumes can have the following relationships:

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Multiple files on a single volume
Single file on multiple volumes
Any combination of the above

Files on a tape are separated by a special pattern called a Tape Mark
Two tape marks without intervening data signal end of volume
Labels (which are system generated files) are used to provide user data file
descriptions

Standard labels (SL)
User defined labels (UL)
No labels (NL)
ANSI standard labels (AL)

Accessing data

Some standard access methods:

Basic Sequential Access Method (BSAM)
Queued Sequential Access Method (QSAM)
Basic Partitioned Access Method (BPAM)
Virtual Storage Access Method (VSAM)

Access methods:

are invoked through a standard interface
build actual channel programs
interact with the input/output supervisor

Advantages to the user:

Shielded from device details
Can use standard interface from low and high level languages
Portable code

Assembler language interface provides greater control over the access method
Channel programming also possible from assembler

Note: High level languages provide the familiar verbs (OPEN, CLOSE, READ,
WRITE).

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Efficiency considerations

Block sizes

Small block sizes cause additional I/O
Bad block sizes waste space
Good blocking for DASD: 1/2 track (eg, 23440 for 3380, 27920 for 3390)

Multiple PS datasets versus PDS/PDSE members

A single PS cannot be smaller than 1 track - a PDS/PDSE member
can share tracks with other members
Each PS needs a Catalog and a VTOC entry - the entire PDS/PDSE has
one Catalog and 1 VTOC entry
Each member of a PDS/PDSE must have the same characteristics like
record length

Space parameters for allocation

Bad primary / secondary allocation parameters can cause unnecessary
fragmentation, 'out of space' errors
A PDS often runs of out space, needs to be 'compressed'
A PDS often runs out of directory space



Discussion topics - Session 3


How would system managed storage help in a non-MVS environment?
When would you code assembler routines for I/O?
How can you have duplicate datasets names in MVS?


End of Session 3
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

4. Working on MVS and Useful Tips
Topics in this session

Working on MVS as a TSO / batch user
Useful tips

Session Goals:
Task oriented overview of working on MVS
A user perspective of MVS

When you logon to a Time Sharing Option (TSO) session,

TSU address space created. J obname=userid
J obstep executes the Terminal Monitor Program (TMP)
Required runtime environment pre-defined in logon PROC and user
startup procedure

During the TSO session, you can:

Issue TSO commands (handled by TMP)
Enter into an Interactive System Productivity Facility (ISPF) session
Carry out interactive tasks using ISPF
Communicate with the batch subsystem, by submitting jobs, receiving
job status information
Operate on the spool using the System Display and Search Facility
(SDSF)

Batch jobs submitted by you will be written in J ob Control Language, describing:

J ob name, owner information
One or more jobsteps and required resources for these
Execution sequencing and logic
Each jobstep executes one program

You may also directly or indirectly interact with system started tasks like
CATALOG, DB2, VTAM
Sometimes you may need to sign on to other subsystems like CICS and IMS
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

To create your own executable code, you normally would:

Allocate required datasets (source, object, load libraries)
Write the code using an editor (usually ISPF)
Compile the code into a text deck and store in an object library
Execute the text deck using the LOADER, or
Create a load module using the LINKER or an executable object using
the BINDER
A load module or an executable object can be executed independently in
a jobstep

Many system utilities are available in the global environment for foreground and
batch, like:
Compilers
Loader / Linker / Binder
Copy
Backup
Sort

Useful Tips
Common Abend Codes
Sharing datasets
SDSF Usage
Batch Versus Online
Watch your datasets
Learn Installation Conventions
Help and Manuals

Common Abend Codes

An Abend is an Abnormal End of a program. Abend codes point to
diagnostic information. Common codes are:

S0C1 Operation Exception. For example, dataset Open error
S0C4 Protection Exception. For example, invalid pointer value
S0C7 Data Exception. For example, Alphabet used in arithmetic
S0C9 Fixed Point overflow. For example, divide by Zero
S222 J ob cancelled
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
S322 J ob exceeds time limit for specified class
S806 Load module not found
S813 Datasetname mismatch on tape label
S913 Security violation
S878 Insufficient virtual storage
Sx37 Series of DASD space related conditions

Sharing Datasets

MVS recognizes two types of access:

Exclusive access (DISP=OLD or MOD)
Shared access (DISP=SHR)

Data integrity not guaranteed for shared access, unless provided
by subsystem or application

Don't compress a PDS being written by another user...

Batch Versus Online

Online interactions are biased towards short transactions. Batch is biased for long
running transactions. Use online for:

Interactive work like editing, data entry
Debugging
Documentation

Use batch for:

Compiles
Test execution
Backups / restores
Any long running operation eg, sort, copy
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

Using SDSF

Don't watch your batch job in real time
Hitting ENTER on the active queue list in SDSF actually makes your job run
slower


Watch Your Datasets

Each dataset is accessed by a program via a DD name
Make sure the DD name points to the dataset you want
Most common errors:

Linkage editor output DD (SYSLMOD) points to the source code dataset
Source and Target of copy get exchanged

Learn Installation Conventions

Every installation has its own conventions
Ask for or locate the NEWS or BULLETIN BOARD
Follow installation standards

Help and Manuals

TSO/E and ISPF come with online help
BookManager and equivalent products provide softcopy of manuals
Hardcopy manuals available
Every error condition is accompanied by a message
Messages manuals provide additional information
Each message has an explanation and suggested actions
Suggested manuals:

User Guides and reference for TSO, ISPF, J CL, REXX, COBOL...
Utilities manual
DFSORT user guide, reference
Linkage Editor and Binder User Guide, reference
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

5. GLOSSARY

Abend Abnormal End
BLKSIZE Block Size
BOS Basic Operating System
BPAM Basic Partitioned Access Method
BSAM Basic Sequential Access Method
CICS Customer Information Control System
CKD Count-Key-Data (type of DASD)
CMOS Complementary Metal Oxide Semiconductor
CMS Conversational Monitor System (part of VM)
CMVC Configuration Management and Version Control
CSP Cross System Product
DA Direct Access (type of dataset organization)
DASD Direct Access Storage Device
DATACLAS SMS data class parameter in J CL and TSO
Dataspaces Data-only virtual memory available to a task, byte addressible, (2GB)
DBMS Database Management System
DCB Dataset Control Block
DCF Document Composition Facility
DD Data Definition (type of statement in J CL)
DFSMS Data Facility Storage Management Subsystem
DISP Disposition (parameter in J CL)
DSORG Dataset Organization (parameter in J CL)
ES Enterprise Systems
ESA Enterprise Systems Architecture
ESDS Entry Sequenced Dataset (type of VSAM dataset)
FBA Fixed Block Architecture (type of DASD)
GB Gigabytes (2 ** 9 bytes)
GDDM Graphical Data Display Manager
Hiperspaces High Performance data spaces, page addressible
HASP Houston Automatic Spooling Program
HLQ High Level Qualifier
IBM International Business Machines
IDRC Improved Data Recording Capability
IMS Information Management System
IMS/ESA DM IMS database manager
IMS/ESA TM IMS transaction manager
ISPF Interactive System Productivity Facility
J CL J ob Control Language
J ES J ob Entry Subsystem
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
Kbpi Kilobytes per inch
KSDS Key Sequenced Dataset (type of VSAM dataset)
LANRES LAN Resource Extensions
LDS Linear dataset (type of VSAM dataset)
LRECL Logical Record Length (TSO, J CL parameter)
Magstar 3580 cartridge system from IBM
MB Megabytes
MVS Multiple Virtual Storage
MVS/ESA MVS / Enterprise Systems Architecture
MVS/SP MVS / System Product
MVS/XA MVS / Extended Architecture

Netview Network Management product from IBM
NCP Network Control Program
NL No Label
NPSI Network Packet Switched Interface
OAM Object Access Method
OS/MFT Operating System / Multiprogramming with Fixed number of Tasks
OS/MVT Operating System / Multiprogramming with Variable number of tasks
OS/390 Operating System / 390, the new name for MVS, after MVS/ESA
5.2.2
PowerPC Performance Optimization With Enhanced Risc - Performance Chip
PCP Primary Control Program
PDS Partitioned dataset
PDSE Partitioned dataset - Extended
PL/I Programming Language / 1
PM Presentation Manager
POSIX Portable Operating System Standard from IEEE
PR/SM Processor Resource / System Manager
PROC Procedure (J CL parameter)
PS Physical Sequential
QSAM Queued Sequential Access Method
RACF Resource Access Control Facility
RAMAC 9394 / 9395 DASD system from IBM
REXX Restructured Extended Executor
RMODE Residence Mode
RRDS Relative Record Dataset (VSAm dataset type)_
RS RISC System
RSCS Remote Spooling and Communication Subsystem
SAP Package from SAP AG
SDSF System Display Search Facility
SL Standard Label (J CL parameter)
SMS System Managed Storage
I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m
STORCLAS J CL / TSO parameter for SMS storageclass
TCAM Telecommunication Access Method
TCM Thermal Conduction Module
TMP Terminal Monitor Program
TPF Transaction Processing Facility
TSO/E Time Sharing Option / Extensions
TSU Time Sharing User
UL User defined label (J CL parameter)
VM/ESA Virtual Machine / Enterprise Systems Architecture
VOLSER Volume Serial (J CL parameter)
VRPG Visual RPG
VRRDS Variable length Relative Record Dataset (VSAM dataset type)
VSAM Virtual Storage Access Method
VSE/ESA Virtual Storage Extended / Enterprise Systems Architecture
VTAM Virtual Telecommunications Access Method
VTOC Volume Table of Contents
WAN Wide Area Network

I
B
M
M
A
I
N
F
R
A
M
E
S
.
c
o
m

Vous aimerez peut-être aussi