Mvs Handout
Mvs Handout
Table of Contents
1. Introduction ...................................................................................................................................13
2. Computing Environment...............................................................................................................14
Key Concepts and Terminology.................................................................................................14
Command Processing..................................................................................................................14
Data Processing...........................................................................................................................14
Multi-programming.....................................................................................................................15
Multi-programming Overheads..................................................................................................16
Relevance of Multi-programming..............................................................................................16
Multi-processing.........................................................................................................................16
VERSION 2.0
Spooling......................................................................................................................................16
Virtual Storage............................................................................................................................17
3rd July 2000
3. Typical IBM Main Frame Site......................................................................................................18
4. IBM Operating Systems................................................................................................................19
MVS Evolution...........................................................................................................................20
5. Operating System Considerations................................................................................................25
a)Process Management...............................................................................................................25
b)Memory Management..............................................................................................................26
c)Input-Output Management.......................................................................................................27
System 370 I/O Architecture......................................................................................................28
6. IBM Hardware...............................................................................................................................31
7. Key Terminology............................................................................................................................32
Cache Memory............................................................................................................................32
Expanded Memory......................................................................................................................32
1
MVS
Processor Resource / System Manager (PR/SM).......................................................................32
Channels......................................................................................................................................32
Channel - I/O Device Connectivity............................................................................................32
ESCON - Enterprise System Connection...................................................................................32
I/O Devices..................................................................................................................................33
Unit Record Devices - Each record is a single physical unit.....................................................33
Magnetic Tape.............................................................................................................................33
DASD - Direct Access Storage Device......................................................................................33
3990 Storage Controller..............................................................................................................33
Data Communication Network...................................................................................................33
Components of data communication..........................................................................................33
3270 Information Display System..............................................................................................34
8. Data Communication Equipment.................................................................................................35
Often Asked Questions About IBM...........................................................................................36
9. Characteristics Features Of MVS................................................................................................38
MVS Terminology......................................................................................................................38
Address Space.............................................................................................................................38
MVS............................................................................................................................................39
Paging..........................................................................................................................................39
Demand Paging...........................................................................................................................40
Swapping.....................................................................................................................................40
Page Stealing..............................................................................................................................41
RSM (Real Storage Manager).....................................................................................................41
ASM (Auxiliary Storage Manager)...........................................................................................41
VSM (Virtual Storage Manager)................................................................................................41
Virtual Storage Layout................................................................................................................42
10. MVS Functions.............................................................................................................................44
Data Management Overview......................................................................................................44
Types of Data..............................................................................................................................44
Dataset Organization...................................................................................................................44
Non-VSAM datasets organization..............................................................................................45
Dataset Organization...................................................................................................................45
VSAM datasets organization......................................................................................................46
Data Organization - Salient Points.............................................................................................46
Data Set Naming Rules...............................................................................................................46
MVS Datasets..............................................................................................................................47
11. MVS Concepts..............................................................................................................................51
How datasets are Accessed.........................................................................................................51
12. Job Management Overview.........................................................................................................52
What is a Job?.............................................................................................................................52
Job Management.........................................................................................................................53
Definitions...................................................................................................................................53
Job Scheduling............................................................................................................................53
13. Dataset Allocation And Job Step Execution..............................................................................57
MVS
14. MVS Tools Overview...................................................................................................................59
Components of Job Output.........................................................................................................62
An Introduction to TSO..............................................................................................................65
15. Interactive System Productivity Facility (ISPF).......................................................................67
Primary Options Menu................................................................................................................67
Termination Panel.......................................................................................................................69
Key Mapping .............................................................................................................................69
Browsing Datasets (Option 1).....................................................................................................70
Browse Commands.....................................................................................................................70
Editing Datasets (Option 2)........................................................................................................71
Standard editing commands........................................................................................................71
Edit Profiles.................................................................................................................................72
Profile Settings............................................................................................................................72
Edit Modes..................................................................................................................................73
Advanced Edit Options...............................................................................................................73
Shifting text source.....................................................................................................................74
Utilities Menu..............................................................................................................................74
Library Utility.............................................................................................................................75
Dataset Utility.............................................................................................................................76
New dataset allocation................................................................................................................76
Renaming Dataset.......................................................................................................................77
Dataset information.....................................................................................................................77
Allocate datasets managed by SMS............................................................................................78
Move / Copy
.....................................................................................................................................................79
Move / Copy- 2...........................................................................................................................80
DSLIST Utility............................................................................................................................81
DSLIST Dataset Selection..........................................................................................................81
DSLIST Commands....................................................................................................................82
Primary Commands.....................................................................................................................82
....................................................................................................................................................82
Reset............................................................................................................................................83
16. Appendix A ( Assignment )....................................................................................................84
17. Appendix B (Bibliography/References)................................................................................85
1. Introduction ...................................................................................................................................13
2. Computing Environment...............................................................................................................14
Key Concepts and Terminology.................................................................................................14
Command Processing..................................................................................................................14
Data Processing...........................................................................................................................14
Multi-programming.....................................................................................................................15
Multi-programming Overheads..................................................................................................16
Relevance of Multi-programming..............................................................................................16
Multi-programming is applicable even for single user system...................................................16
Multi-programming is a must for multi-user system...................................................................16
Multi-processing.........................................................................................................................16
3
MVS
Spooling......................................................................................................................................16
Multiple programs may need same printer at the same time......................................................16
May result in intermixing of output.............................................................................................16
Exclusive access to a program will hold other programs...........................................................16
Printer is much slower, results in longer wait state...............................................................16
Output to printer is intercepted and written to a disk i.e. spooled.........................................16
On completion of program spooled output is queued for Printing........................................16
This queue is processed by O/S print routine..............................................................................16
The O/S print routine is multi-programmed along with application programs.........................16
Virtual Storage............................................................................................................................17
Required to enable execution of programs with are larger than the main memory size...........17
Technique to simulate large amount of main storage.................................................................17
Reality is main storage is much less............................................................................................17
E.g. Real main storage is 16MB but virtual storage is 2GB.......................................................17
Program executable code is generated assuming virtual storage size.......................................17
Only part of the program is loaded in main memory..................................................................17
Address translation mechanism is used to map virtual address to actual address....................17
Feasible because only the instruction currently being executed and the corresponding data
need to be in the main storage.....................................................................................................17
Main memory can be shared by multiple programs....................................................................17
Enables effective use of the limited main storage.......................................................................17
Address mapping..........................................................................................................................17
Keeping track of what is in memory and what is not .................................................................17
Data/Instructions need to be brought in main memory as an when required.......................17
Remove from main memory what is not currently required (to make room for instructions of
other program).............................................................................................................................17
Memory Management..................................................................................................................17
3. Typical IBM Main Frame Site......................................................................................................18
On-line during prime time (might mean 24 hours for global operations)..................................18
Batch during non-prime time (wrt local time) of 12 - 15 hours.................................................18
Variety of Databases / OLTP packages......................................................................................18
EDI Processing............................................................................................................................18
Two Tier Database Architecture - C/S and Central....................................................................18
Multiple Machines - Networked Together...................................................................................18
Multiple Processors for Each Machine.......................................................................................18
Huge Number of Data Storage Devices - Disks and Tapes........................................................18
Huge IT Departments..................................................................................................................18
Application Programming Staff...................................................................................................18
DBAs............................................................................................................................................18
Operations Multiple Data Centers to Manage Batch Processing..............................................18
System Programmers for;............................................................................................................18
O/S................................................................................................................................................18
Database Packages......................................................................................................................18
OLTP Packages...........................................................................................................................18
Network Support Staff..................................................................................................................18
4. IBM Operating Systems................................................................................................................19
MVS Evolution...........................................................................................................................20
Limited and inefficient spooling..................................................................................................22
4
MVS
No Virtual Storage.......................................................................................................................22
HASP - Houston Automatic Spooling Priority............................................................................22
5. Operating System Considerations................................................................................................25
a)Process Management...............................................................................................................25
b)Memory Management..............................................................................................................26
c)Input-Output Management.......................................................................................................27
System 370 I/O Architecture......................................................................................................28
6. IBM Hardware...............................................................................................................................31
Multiple processors with partitioning capability........................................................................31
Cache memory and expandable memory.....................................................................................31
Multi-user / Multi-programming Support...................................................................................31
Batch and on-line processing support.........................................................................................31
Local and remote terminal support.............................................................................................31
High number of devices...............................................................................................................31
Strong data management capability............................................................................................31
7. Key Terminology............................................................................................................................32
Cache Memory............................................................................................................................32
High speed memory buffer (faster than main memory)..............................................................32
Operates between CPU and main memory.................................................................................32
Used to store frequently accessed storage locations (instructions)...........................................32
Usually available on all processors............................................................................................32
Expanded Memory......................................................................................................................32
Supplements main memory..........................................................................................................32
Not directly available to application program............................................................................32
Not directly accessible by CPU...................................................................................................32
Implemented using high speed disk.............................................................................................32
Usually available with higher-end machines..............................................................................32
Processor Resource / System Manager (PR/SM).......................................................................32
Channels......................................................................................................................................32
Device Management Concept - Unique to IBM..........................................................................32
Provides access path between CPU and I/O devices (DMA).....................................................32
Up to eight control units can be connected to one channel........................................................32
Up to eight I/O devices can be connected to one control unit....................................................32
A channel is a small computer in itself with a set of instructions (Channel commands)...........32
Channel controls the I/O device operations independent of CPU..............................................32
Cannel processing can overlap CPU processing - improved performance...............................32
Channel - I/O Device Connectivity............................................................................................32
Parallel architecture i.e. all bits of a byte are transmitted simultaneously..............................32
Information transfer is in unit of two bytes.................................................................................32
Sixteen data wires and additional control wires are required...................................................32
Maximum length of 120 meters (400 feet)...................................................................................32
Data speed of 4.5mbps.................................................................................................................32
Use of copper results in heavy, expensive cabling......................................................................32
ESCON - Enterprise System Connection...................................................................................32
Announced in 1990......................................................................................................................32
Uses fiber optic............................................................................................................................32
Results in reduced size and weight..............................................................................................32
5
MVS
Length limit extended to approximately 42Km (26 miles)..........................................................33
Faster data speed (17mbps)........................................................................................................33
I/O Devices..................................................................................................................................33
Unit Record Devices - Each record is a single physical unit.....................................................33
Card Devices (now obsolete) : Readers / Punches / Reader and Punches................................33
Printer..........................................................................................................................................33
Built-in control units for each device..........................................................................................33
Directly attached to channel........................................................................................................33
Magnetic Tape.............................................................................................................................33
High volume storage....................................................................................................................33
Sequential processing..................................................................................................................33
Normally used as back-up device................................................................................................33
Also used for physical transfer of data........................................................................................33
4 to 8 tape drives are connected to one control unit...................................................................33
DASD - Direct Access Storage Device......................................................................................33
IBMs official name for Disk.......................................................................................................33
Non-removable - offers better reliability and are faster.............................................................33
Each unit is called as disk pack or Volume.................................................................................33
Each pack has multiple surfaces.................................................................................................33
Each surface has multiple tracks.................................................................................................33
Same track no. of all surfaces together constitute a Cylinder....................................................33
DASD capacity ranges from 100 MB (3330) to 8514MB (3390/9)............................................33
A group of DASDs of same type are connected together to form a String and are connected to
a string controller........................................................................................................................33
Multiple string controller are connected to a storage controller...............................................33
Storage controller is connected to channel.................................................................................33
3990 Storage Controller..............................................................................................................33
Can connect 2 strings of 32 each 3390 model DASDs (totally 64 DASDs.................................33
Consists of high speed cache storage (32MB to 1024MB)........................................................33
Data is buffered using cache.......................................................................................................33
Frequently accessed data is stored in Cache - improved performance......................................33
Supports more than 4 channel connection to processor ............................................................33
Data Communication Network...................................................................................................33
Components of data communication..........................................................................................33
Host Computer - System/370 processor......................................................................................34
Communications Controller - Attached to the channel..............................................................34
Modems and telecommunication lines (telephone line, Satellite Link)......................................34
3270 Information Display System..............................................................................................34
Sub-system of terminals, printers and controllers connected to Host computer........................34
Locally through communications controller or directly to channel...........................................34
Remotely through communications controller, modem and telecommunications line...............34
A typical 3270 terminal controller (3274) controls up to 32 terminals / printers.....................34
Emulator programs (Shine Link, Erma Link) allow computers (typically PCs) to mimic 3270
devices..........................................................................................................................................34
These are useful since they allow upload / download of data between MF and PC..................34
8. Data Communication Equipment.................................................................................................35
it manages the communication function......................................................................................36
necessary to connect remote terminal system.............................................................................36
via modems and telecommunication lines...................................................................................36
6
MVS
Often Asked Questions About IBM...........................................................................................36
User interface is poor..................................................................................................................36
Ancient terminology (e.g. Card, Punch queue) which is irrelevant now....................................36
Different terminology (e.g. DASD, DATA SET)..........................................................................36
Too many options / parameters...................................................................................................36
Too many terms / acronyms ........................................................................................................36
Variety of software results in site specific variations.................................................................36
Sturdy and Secure HW/SW..........................................................................................................36
Downward compatibility (does not make application SW obsolete)..........................................36
Excellent customer support.........................................................................................................36
Variety of software (Databases, OLTP packages) - IBM and Third Party................................36
Market Leader..............................................................................................................................36
Large existing application base will need support.....................................................................36
Downsizing will need knowledge of current application/platform.............................................36
Dual skills will be much in demand.............................................................................................36
Not all applications are suitable for downsizing - many will remain on MF.............................36
MF will be increasingly used as back-end server.......................................................................36
New applications (data warehousing type) will be developed on MF........................................36
Multi-tier architecture will become common..............................................................................36
9. Characteristics Features Of MVS................................................................................................38
MVS Terminology......................................................................................................................38
Address Space.............................................................................................................................38
MVS............................................................................................................................................39
Paging..........................................................................................................................................39
A block of Real Storage is a Frame.............................................................................................39
A block of Virtual Storage is a Page...........................................................................................39
A block of Auxiliary storage is a Slot..........................................................................................39
Demand Paging...........................................................................................................................40
Swapping.....................................................................................................................................40
Page Stealing..............................................................................................................................41
RSM (Real Storage Manager).....................................................................................................41
ASM (Auxiliary Storage Manager)...........................................................................................41
VSM (Virtual Storage Manager)................................................................................................41
controls allocation/deallocation of virtual storage....................................................................41
maintain storage use information for Storage Management Facility (SMF).............................41
Virtual Storage Layout................................................................................................................42
contains tables and queues relating to the entire system...........................................................43
the contents of SQA depends on an installations configuration & job requirement.................43
Allocated SQA space is both non-swappable and non-pageable...............................................43
10. MVS Functions.............................................................................................................................44
Data Management Overview......................................................................................................44
Types of Data..............................................................................................................................44
Database......................................................................................................................................44
Indexed Files................................................................................................................................44
Flat Files......................................................................................................................................44
Source Programs.........................................................................................................................44
Executable Programs...................................................................................................................44
Screen Definitions........................................................................................................................44
7
MVS
Record Layout Definitions...........................................................................................................44
Command File Scripts.................................................................................................................44
O/S program.................................................................................................................................44
User Information (ID, Password, Profile)..................................................................................44
Access Permissions......................................................................................................................44
O/S Built Data (e.g. task queues, segment table, page table).....................................................44
Spooled Output.............................................................................................................................44
Work Files for Sort......................................................................................................................44
Dataset Organization...................................................................................................................44
Non-VSAM datasets organization..............................................................................................45
Dataset Organization...................................................................................................................45
Commonly referred as PDS.........................................................................................................45
Also known as Library.................................................................................................................45
Used to store application components........................................................................................45
PDS is divided into one or many members.................................................................................45
Member name can be up to 8 characters long............................................................................45
There is no extension for member...............................................................................................45
Each member can be processed as an individual unit................................................................45
Entire PDS can be processed as one unit....................................................................................45
Each PDS contains a directory...................................................................................................45
Directory has an entry for each member in a PDS.....................................................................45
Personal PDS start with high level qualifier as User ID............................................................45
E.g. DA00T23.NEW.SOURCE....................................................................................................45
Member Name Examples.............................................................................................................46
PAB0017, PAB0105, PAC0021 etc.............................................................................................46
VSAM datasets organization......................................................................................................46
Data Organization - Salient Points.............................................................................................46
Non-VSAM Data Organization was developed in mid 1960s.....................................................46
VSAM - (Virtual Storage Access Method) was introduced in early 1970s ................................46
VSAM was expected to replace Non-VSAM Data Organization Functions...............................46
Today, most sites use both VSAM and Non-VSAM Data Organization.....................................46
VSAM is the primary data organization for user data................................................................46
VSAM is also called as native file management system of IBM.............................................46
Most of the DBMS running under MVS use VSAM as underlying Data Organization (e.g. DB2,
IDMS)...........................................................................................................................................46
Data Set Naming Rules...............................................................................................................46
Allows - Alpha, Digits, National Characters @,#$, and .......................................................46
Maximum Length 44 characters for DASD, 17 for Tape ..........................................................46
If Length is more than 8, must be broken into qualifiers of maximum 8 characters each.........46
Qualifiers are separated by ....................................................................................................46
. are counted in overall length................................................................................................46
First character of the qualifier must be alpha or national character........................................46
Last character of data set must not be ...................................................................................46
First qualifier is called as high-level qualifier............................................................................47
High-level qualifier has special significance..............................................................................47
Data Set Label..............................................................................................................................47
DASD Label.................................................................................................................................47
Volume Serial Number.................................................................................................................47
VTOC...........................................................................................................................................47
MVS Datasets..............................................................................................................................47
8
MVS
VSAM data sets must be Cataloged.............................................................................................49
Non-VSAM Data Sets may or may not be cataloged..................................................................49
An Alias can be created for a Catalog........................................................................................49
Data Management........................................................................................................................49
11. MVS Concepts..............................................................................................................................51
How datasets are Accessed.........................................................................................................51
Allocation.....................................................................................................................................51
Processing....................................................................................................................................51
Deallocation.................................................................................................................................51
Unit is selected and allocated e.g. SYSALLDA-DASD, TAPE .................................................51
Volume is allocated......................................................................................................................51
Dataset on that volume is allocated ...........................................................................................51
12. Job Management Overview.........................................................................................................52
What is a Job?.............................................................................................................................52
Simply put, job is execution of one or more related programs in sequence...............................52
E.g. 1............................................................................................................................................52
A job of creating an executable module (load module) from a source program consists of.....52
executing Compiler program and executing Linker program....................................................52
E.g. 2............................................................................................................................................52
A job of printing invoices may consist of execution of three programs;....................................52
Executed in a background mode..................................................................................................52
Job details are specified using some command language..........................................................52
Receive the job into operating system.........................................................................................52
Schedule the job for processing by O/S.......................................................................................52
Execute the Job............................................................................................................................52
Process the output........................................................................................................................52
2. Job Scheduling.........................................................................................................................52
3.Job Execution............................................................................................................................52
4. End of execution (normal, erroneous).....................................................................................52
Type of execution errors..............................................................................................................53
Any abnormal termination of program is called as Abend....................................................53
Job Management.........................................................................................................................53
Definitions...................................................................................................................................53
Job Scheduling............................................................................................................................53
13. Dataset Allocation And Job Step Execution..............................................................................57
14. MVS Tools Overview...................................................................................................................59
These are essentially Software programs; system programs......................................................59
Runs as part of TSO.....................................................................................................................59
Takes advantage of full screen (24 x 80) capability of 3270 terminals......................................59
Panels are provided for terminal users for issuing commands..................................................59
Key Functions Implemented Using ISPF....................................................................................59
PDF - Program Development Facility is Part of ISPF..............................................................59
JCL is used to specify this information.......................................................................................60
The most common information supplied through JCL is;...........................................................60
Thus, JCL is nothing but a set of commands...............................................................................60
JCL is powerful and flexible, that leads to some complexity......................................................60
MVS
It is non-intuitive..........................................................................................................................60
The user interface is formidable..................................................................................................60
The terms are ancient..................................................................................................................60
Very little has changed since 1965 when JCL was first developed............................................60
Two versions of JES; JES2/JES3.................................................................................................60
Each MVS system uses either JES2 or JES3...............................................................................61
.Job can enter the system from local or remote card readers (now obsolete)...........................61
On SUBMIT, internal reader reads the JCL and creates an input stream.................................61
Job is put in the conversion queue..............................................................................................61
Converter program analyzes JCL statements.............................................................................61
Converts into converter / interpreter text....................................................................................61
Checks for Syntax errors.............................................................................................................61
Selected job is passed to Initiator................................................................................................61
Initiator invokes Interpreter........................................................................................................61
Interpreter builds control blocks from converter / interpreter text in a Scheduler Work Area
(SWA)...........................................................................................................................................61
Initiator allocates resources required by the Job.......................................................................61
On completion of the program execution, initiator de-allocates the resources.........................61
The process of allocation / execution and de-allocation is repeated for each job step ............61
Management of System Messages, User Data Sets that need to be Printed / Punched............62
Organized by output class and device set-up requirements........................................................62
User s program can produce output data that is stored in a JES spool; called as SYSOUT
data...............................................................................................................................................62
Each SYSOUT data is assigned an output class.........................................................................62
Output class indicates the printer selection................................................................................62
Held Output............................................................................................................................62
Output is produced at each stage job processing.......................................................................62
Includes output produced by;......................................................................................................62
Job output is available to user (you can see it dynamically)......................................................62
It can be viewed using ISPF........................................................................................................62
Components of Job Output.........................................................................................................62
List of JCL that was processed for the job..................................................................................63
Should be same as what user has created...................................................................................63
Telecommunications (TC) Access Method..................................................................................63
Required to support terminal devices..........................................................................................63
Part of SNA System Network Architecture...............................................................................63
Provides centralized control over all terminals attached to the system.....................................63
VTAM Application programs (e.g. TSO, CICS IMS-DC) communicate with terminal devices
via VTAM.....................................................................................................................................63
Interactive applications are developed using CICS....................................................................63
CICS is a VTAM application program........................................................................................63
Works with VTAM to support on-line functions..........................................................................63
CICS implements multi-programming within itself.....................................................................63
Multiple programs which are part of same application are executed within CICS address
space.............................................................................................................................................63
CICS selects one program at a time for execution......................................................................64
CICS itself is multi-programmed by MVS along with other programs......................................64
Database Management System....................................................................................................64
Relational Implementation..........................................................................................................64
Comprehensive Security Package ..............................................................................................64
10
MVS
Though optional used by most of the installations......................................................................64
Users and Resources (e.g. Data Sets) are identified to RACF...................................................64
Whenever user tries to access a resource the security is checked by RACF..............................64
RACF is a set of routines.............................................................................................................64
Invoked as and when required.....................................................................................................64
CPU, DASD I/O, Records Printed etc.........................................................................................64
Language Translators- Convert source to object module..........................................................64
Separate for each language, Assembler Language Translator is part of MVS..........................64
Linkage Editor (part of MVS) - Converts object module to executable I.e. load module..........64
Loader - Creates temporary load module (used during testing phase)......................................64
Set of general purpose programs................................................................................................64
Executed like a user program through JCL................................................................................64
Common Utilities are :................................................................................................................64
An Introduction to TSO..............................................................................................................65
15. Interactive System Productivity Facility (ISPF).......................................................................67
Primary Options Menu................................................................................................................67
Termination Panel.......................................................................................................................69
Key Mapping .............................................................................................................................69
Browsing Datasets (Option 1).....................................................................................................70
Browse Commands.....................................................................................................................70
Editing Datasets (Option 2)........................................................................................................71
Standard editing commands........................................................................................................71
Edit Profiles.................................................................................................................................72
Profile Settings............................................................................................................................72
Edit Modes..................................................................................................................................73
Advanced Edit Options...............................................................................................................73
Shifting text source.....................................................................................................................74
Utilities Menu..............................................................................................................................74
Library Utility.............................................................................................................................75
Dataset Utility.............................................................................................................................76
New dataset allocation................................................................................................................76
Renaming Dataset.......................................................................................................................77
Dataset information.....................................................................................................................77
Allocate datasets managed by SMS............................................................................................78
Move / Copy
.....................................................................................................................................................79
Move / Copy- 2...........................................................................................................................80
DSLIST Utility............................................................................................................................81
DSLIST Dataset Selection..........................................................................................................81
DSLIST Commands....................................................................................................................82
Primary Commands.....................................................................................................................82
....................................................................................................................................................82
Reset............................................................................................................................................83
16. Appendix A ( Assignment )....................................................................................................84
17. Appendix B (Bibliography/References)................................................................................85
11
MVS
Day-Wise Schedule
Day 1
Computing Environment -Key Concepts & terminology, Typical IBM MF site.
IBM Operating Systems IBM families of OS
IBM Hardware
MVS Implementation
Lab session
Demo on ISPF
Familiarizing with various options of TSO & ISPF Editor
Day 2
MVS Functions
Data Management Overview
Job Management Overview
MVS Tools Overview
Lab Session
Assignments ISPF editor & TSO
12
MVS
1. Introduction
Before you begin to work on the Mainframe environment, which by default means IBM
Mainframe, you need to have a basic idea of the IBM mainframe operating system. Today, it is
know as MVS, which expands to Multiple Virtual Storage.
The MVS operating system has evolved over many years and has adapted to the changing
technology and modern day requirements. Since the user base of MVS is very large, a change is not
easy to Implement. The costs of the Mainframes are very high and the customer base is mostly
made up of long-term customers with huge application and large databases to support. Most of these
applications are also Mission Critical applications. It is therefore imperative that any change to
MVS also be backward compatible.
MVS is designed to work with many hundreds of users working together, located in the
same locality or across continents. The MVS operating System was created by IBM and is said to
propriety OS. It has the capacity to supports a large number of peripherals like disks, tapes,
printers, Network devices etc. The applications on these Legacy systems are typically where there
is a huge amount of data and a large user base. Examples are Banking sector, Insurance Sector,
Newspapers, Material & Inventory, Airlines, Credit Card System, Billing, Accounting, Shipping
and others. Companys that own these mainframes are typically those that are very big inherently or
have to deal with vast amounts of data, which has to be processed fast.
13
MVS
2. Computing Environment
Key Concepts and Terminology
Command Processing
Data Processing
How Business applications are executed
On-line
Batch
Typically used for bulk transaction processing, report printing, periodic processing (e.g. invoice
generation, payroll calculation)
14
MVS
1.
2.
3.
4.
Time Sharing
Resource Sharing
Multiple Users compete for computer resources at the same time
At any given point in time only one user can have control of the resources
What should be the basis of sharing?
First come first served?
Priority based?
Who so ever can grab it - Law of Jungle?
Equal - Democratically?
Need based?
Usually combination of 2 and 4 is used i.e. all are equal but some are more equal!!!
Time Slice
Each user is given control of resources for a pre-defined period - time slice
The control is passed on to next in queue user at the end of time slice (even if first users
work is incomplete)
If the user requires I/O before the time slice is over, the control is handed over to the
next user (since CPU cannot do anything until I/O is complete)
Priority
Multi-programming
Why Multi-programming ?
The program has CPU based and Non-CPU based instructions
CPU is kept waiting during the non-CPU based instructions execution
E.g. I/O operations (Disk, Terminal, Printer)
This results in wastage of CPU time - a precious resource
Multi-programming results in better CPU utilization
MVS
Another program is immediately taken for execution
On completion of I/O the program again becomes ready for execution
This results in an illusion that multiple programs are being executed simultaneously, hence
multiprogramming.
Multi-programming Overheads
Relevance of Multi-programming
Multi-programming is applicable even for single user system
Multi-programming is a must for multi-user system
Multi-processing
Spooling
Why Spooling?
Multiple programs may need same printer at the same time
May result in intermixing of output
Exclusive access to a program will hold other programs
Printer is much slower, results in longer wait state
How it is Implemented?
Output to printer is intercepted and written to a disk i.e. spooled
On completion of program spooled output is queued for Printing
This queue is processed by O/S print routine
The O/S print routine is multi-programmed along with application programs
16
MVS
Virtual Storage
Why Virtual Storage ?
Required to enable execution of programs with are larger than the main memory size
17
MVS
18
MVS
For Small
System/360
DOS/VSE
(Virtual Storage
Extended)
OS - Operating System
For Full range
System/360
MVS
(Multiple Virtual
Storage)
19
MVS
MVS Evolution
1995
MVS/ESA 5.2.2
1993
1990
SYSTEM 390
1988
MVS/ESA
16 B
1981
MVS/XA
2 GB (31-bit)
1974
OS/VS2R2(MVS)
16 MB(24-bit)
OS/VS2R1(SVS)
16 MB
OS/MVT
3 MB
1972
1970
OS/VS1
SYSTEM 370
1966
OS/MFT
1966
20
MVS
Operating Systems for
System/360
1965
PCP
Basically a Primer
Introduction of JCL(JOB Control Language)
(Became obsolete 1n
1969
1967/68 MVT
Multi-programming with
Variable number of Tasks
Storage allocated as per
requirement (region)
No. of Jobs depends
upon storage req. and
availability
Reliable Comprehensive
features
Predecessor of MVS
21
MVS
System 370
22
MVS
1974
24 bit addressability
Greater reliability /
integrity / performance
Virtual storage limitation
of 16MB - A serious
handicap for CICS
1983
OS
/VS2
MVS/
XA
32 bit addressability
Virtual storage of 2GB
Increased maximum number
of channels and Devices
1988
Processors :
308x, 3090, 4381
MVS
/ESA
1990
MVS
/ESA
23
MVS
The Von Neumann Computing Model
Instruction 1
Instruction 2
Instruction 3
Register
Instruction 4
---- ----- ---Instructions are executed one at a time sequentially
24
MVS
1) executing
instruction
P1
2) I/O operation
READ
P2
P3
File
3) Now this
will get
executed
Auxiliary Device
25
MVS
b) Memory Management
Problem :- Any thing that is to be executed, must be in memory. (memory limitation)
Solution :- 1. Place task in real memory
2. Place task in virtual memory
1. Real memory implementation :
swapped out
P1
P2
P2
swapped in
DATA
P3
Virtual Memory
OS
Real Memory
(Only part of program that requires
main memory will be in the main
memory)
26
MVS
c) Input-Output Management
Problem :- Application should not worry about device characteristics. I/O device speed is 100 times slower
than CPU.
Solution : Let all I/O be handled by a specialized system-I/O Subsystem
2) I/O operation
swapped out
P1
P1
P2
P2
I/O
Subsystem
swapped in
File
P3
How is to be done is decided by
I/O subsystem
Virtual Memory
OS
Tells What to do
Real Memory
Auxiliary Device
27
MVS
System 370 I/O Architecture
Channel 0
Channel 1
Channel 2
Channel 3
CP
U
Main
Storage
Channel 4
Channel 5
Channel 6
Channel 7
28
MVS
STORAGE
CP
CP
Channels
Devices
Channels
Provide paths between the processor & I/O devices
3090 processors can have a maximum of128 channels
A channel itself is a computer & executes I/O instructions called channel commands
I/O devices are connected to channels through an intermediate device called Control
Unit.
Each channel can have up to 8 control units.
Control Unit
These are DASD units, can be connected to common control unit, called String
Controller.
String Controller can be connected to a channel directly or indirectly
A control unit called Storage Control connects string controllers to a channel.
channel
connection
string controller
1
(1 - 128) storage control
32
(1 - 8)
string controller
1
32
DASD unit
29
MVS
30
MVS
6. IBM Hardware
How do todays PC and medium sized IBM MF compare?
Characteristics
PC (Pentium 100)
Main-Frame (4381)
Processor-speed
16-31 MB
32 MB
Main Memory
16-32 MB
32 MB
Individual Disk
Storage
1.2 GB
946 MB
Monitor
SVGA/Graphics
31
MVS
7. Key Terminology
Cache Memory
High speed memory buffer (faster than main memory)
Operates between CPU and main memory
Used to store frequently accessed storage locations (instructions)
Usually available on all processors
Expanded Memory
Supplements main memory
Not directly available to application program
Not directly accessible by CPU
Implemented using high speed disk
Usually available with higher-end machines
Channels
Device Management Concept - Unique to IBM
Provides access path between CPU and I/O devices (DMA)
Up to eight control units can be connected to one channel
Up to eight I/O devices can be connected to one control unit
A channel is a small computer in itself with a set of instructions (Channel commands)
Channel controls the I/O device operations independent of CPU
Cannel processing can overlap CPU processing - improved performance
MVS
Length limit extended to approximately 42Km (26 miles)
Faster data speed (17mbps)
I/O Devices
Magnetic Tape
High volume storage
Sequential processing
Normally used as back-up device
Also used for physical transfer of data
4 to 8 tape drives are connected to one control unit
33
MVS
Host Computer - System/370 processor
Communications Controller - Attached to the channel
- Devices (terminals and printers) are connected to the terminal controller (also known as
cluster controller)
- Terminal controller is connected to communications controller
- Terminal Controller managing Local terminals / printers can be connected directly to the
channel
Modems and telecommunication lines (telephone line, Satellite Link)
- Remote terminals / printers are connected to terminal controller (at local site)
- Terminal controller is connected to modem
- Modem is connected to telecommunications line
- At the receiving end telecommunications line is connected to modem
- Modem is connected to communication controller
34
MVS
System/370 processor
Host System
channel
communication controller
modem
modem
modem
Telecommunication
Lines
modem
terminal controller
terminal
terminal controller
printer
terminal
Remote System
printer
Remote System
35
MVS
o At the center of the network is the host
system, a system/370 processor
o
The control unit that attaches to the
host systems channels is called a communication controller
it manages the communication function
necessary to connect remote terminal system
via modems and telecommunication lines
A modem is a device that translates digital signals from the computer equipment at the sending
end into audio signal that are transmitted over a telecommunication line, which can be telephone
line, a satellite link or some other type of connection
o
At the receiving end of the line,
another modem converts those audio signals back into digital signal
36
MVS
Bottom Line : It is too soon to herald death of IBM MF
37
MVS
MVS Terminology
Address Space
An address space is simply the complete range of addresses and as a result, the number of
storage locations; that can be accessed by the computer.
An address space is a group of digits that identify a physical location in main storage
MVS allows each programmer to use all 16MB address space, even though real storage
includes only, for example 4MB physical locations.
In MVS, references in the program address space are not associated with a particular real
storage location. They remain reference to a particular piece of information called Virtual
Addresses. They become real only when assigned to a physical location.
When the program is ready to execute the system, using a system/370 hardware feature called
Dynamic Address Translation(DAT), maps the virtual addresses in the program to the real
storage addresses.
By doing this, MVS can make the program address space larger than the number of physical
location available in real storage.
38
MVS
MVS
It uses real storage to simulate several address spaces, each of which is independent of the
others
Address Space I
II
III
Real
Storage
Auxiliary
Storage
0
Auxiliary storage and real storage are used in combination to simulate several virtual storage
address space
Each batch job or TSO user is given its own address space
Various factors such as the speed of the processor and the amount of real storage installed
effectively limit the number of address spaces than can be simulated.
To provide for the larger virtual storage, MVS treats DASD as an extension of real storage
Only one address space can be in control of CPU
Paging
To enable the movement of the parts of a program executing in virtual storage between real
storage and auxiliary storage, the MVS system breaks real storage, virtual storage & Auxiliary
storage into blocks.
A block of Real Storage is a Frame
A block of Virtual Storage is a Page
A block of Auxiliary storage is a Slot
A page, a frame and a slot are all the same size each is a 4K byte
An active virtual storage page resides in a real storage frame, an inactive virtual storage page
resides in an auxiliary storage slot
39
MVS
Moving pages between real storage frames and auxiliary storage slots is called PAGING
Virtual Storage
Page
Frame
Slot
Real Storage
Auxiliary Storage
PAGING
Demand Paging
Assume that DAT encounters an invalid page table entry during address translation, indicating
that a page is required that is not in a real storage frame. To resolve this Page Fault, the system
must locate an available real storage frame to map the required page(page-in). If there is no
available frame, an assigned frame must be freed. To free a frame, the system moves its
contents to a auxiliary storage. This movement is called a Page-Out.
System performs page-out only when the contents of the frame have changed since the page was
brought into real storage.
Once a frame is located for the required page, the contents of the page are moved from auxiliary
storage to real storage. This movement is called as Page-In.
The process of bringing a page from auxiliary storage to real storage in response to a Page Fault
is called DEMAND PAGING
MVS tries to avoid the time consuming process of demand paging by keeping an adequate
supply of available real storage frames constantly on hand. Swapping is one means of ensuring
this adequate supply. Page stealing is another.
Swapping
Swapping is the movement of an entire address space between Virtual storage & Auxiliary
40
MVS
storage.
It is one of the several methods MVS employs to balance system workload, as well as to ensure
that an adequate supply of available real storage frames is maintained.
Address space that are swapped in are active, having pages in real storage frames & pages in
auxiliary storage slots.
Address spaces that are swapped out are inactive; the address space resides on auxiliary
storage and cannot execute until it is swapped in.
Page Stealing
If there are not enough 4K frames available then frames which are not referenced for long time
will get thrown out and written to the auxiliary storage. So now those 4K frames are free. This
is known as Page Stealing.
The paging process is managed by several components of MVS. The 3 major one are :
Real Storage Manager (RSM)
Auxiliary Storage Manager(ASM)
Virtual Storage Manager (VSM)
41
MVS
Virtual Storage Layout
System Queue Area
(SQA)
Common
Area
Pageable Link Pack Area
(PLPA)
Common Service Area
(CSA)
Private
Area
System
Area
Nucleus
System Region
Each Virtual Storage Address Space consists of a System Area, a Private Area and a Common Area.
System Area
It contains the nucleus load module, page frame table entries. Data blocks for system libraries
and so many other things
Nucleus and other contents of the System Area make up the resident part of the MVS system
control program
Its contents are mapped one for one into real storage frames at initialization time.
The size of System Area does not change once it is initialized
Common Area
It contains parts of the system control program, control blocks, tables and data areas
The basic parts of the Common Area are:
System Queue Area (SQA)
Pageable Link Pack Area (PLPA)
Common Service Area (CSA)
MVS
contains tables and queues relating to the entire system
the contents of SQA depends on an installations configuration & job requirement.
It is allocated from the top of the virtual storage in 64K segments, a minimum of 3 segments
are allocated during system initialization.
Allocated SQA space is both non-swappable and non-pageable
Pageable Link Pack Area
Contains svc routines, access methods, other system programs, and selected user programs.
It is pageable
Because the modules in PLPA are shared by all users, all program modules in PLPA must
be reentrant and read-only
PLPA space is allocated in 4K block directly below SQA.
The size of PLPA is determined by the number of modules included
Once the size is set, PLPA does not expand
Common Service Area
Contains pageable system and user data areas.
It is addressable by all active virtual storage address space and shared by all swapped-in
users.
Virtual storage for CSA is allocated in 4K pages directly below PLPA.
Private Area
LSQA contains tables and queues that are unique to a particular address space
SWA contain control blocks that exist from task initiation to task termination
The information in SWA is created when a job is interpreted and used during job initiation and
execution
43
MVS
Dataset Organization
Dataset organization fall into two categories under MVS : VSAM and NON-VSAM
Non-VSAM provides four basic ways of organizing data stored in datasets
Physical Sequential
Indexed Sequential
Direct
Partitioned
44
MVS
Partitioned
Each of these members can be processed, as if it were a separate physical sequential file.
Dataset Organization
Partitioned Data Set - Salient Features
Commonly referred as PDS
Also known as Library
Used to store application components
PDS is divided into one or many members
Member name can be up to 8 characters long
There is no extension for member
Each member can be processed as an individual unit
Entire PDS can be processed as one unit
Each PDS contains a directory
Directory has an entry for each member in a PDS
PDS Examples:
PAYROLL.TEST.SOURCE, PAYROLL.PROD.SOURCE,
INV.TEST.LOADLIB
E.g. DA00T23.NEW.SOURCE
45
MVS
Usually, the application component type cannot be identified from the member name. For that
naming conventions are used for PDS.
KSDS
RRDS
Lets you retrieve the record by specifying the location relative to the start of the file
Today, most sites use both VSAM and Non-VSAM Data Organization
Most of the DBMS running under MVS use VSAM as underlying Data Organization
(e.g. DB2, IDMS)
Index Sequential and Direct Data Organization are not very popular now (these
functions are handled better by VSAM)
Partitioned Data Sets (PDS) also used by MVS to store O/S programs
MVS
First qualifier is called as high-level qualifier
High-level qualifier has special significance
E.g. Data Set name PAYROLL.P9710.TRAN
Has three qualifiers
High-level qualifier is PAYROLL
Total length is 18
Dataset Tracking
Data Set Tracking Mechanisms
Label
Catalog
Label
DASD Label
Each DASD is labeled; called Volume Label (VOL1 label)
DASD label is stored on a disk at third record of track 0 in cylinder 0
DASD label contains Volume Serial Number and address of the VTOC file
MVS Datasets
Label Processing
When a dataset is stored on disk or tape, MVS identifies it with special records called labels.
There are 2 types of DASD labels : Volume, File Label
All DASD volumes must contain a volume label, often called a VOL1 label. This label is
always in the same place on a disk volume : the 3rd record of track zero in cylinder zero.
47
MVS
must have a unique six-characters vol-ser.
It contains the disk address of the VTOC.
The VTOC (Volume Table of Contents) is a special file that contains the file labels for the
datasets on the volume.
These labels are called Data Set Control Block (DSCB) have several formats called Format-1,
Format-2 and so on.
VOL 1 Label
Vtoc
Format-4
VTOC
Format-1
FileA
Format-I
File-B
Format-I
File-C
Format-3 Format-5
File-B
Free Extents
Free Extents
File-A
File-B
File-C
Free Extent
File-B
Free Extent
Format-4-dscb
Format-1-dscb
Obviates the need of specifying Vol Ser for the data set
Catalog Types
48
MVS
Master Catalog
User Catalog
Catalog Features
Each MVS has only one Master Catalog
Master Catalog is used by MVS for system data sets
User Catalog is used for user data sets
There can be multiple User Catalogs
Master Catalog contains one entry of each User Catalog
- VSAM data sets must be Cataloged
- Non-VSAM Data Sets may or may not be cataloged
- An Alias can be created for a Catalog
Usually, the high-level qualifier of a data set is same as the catalog name or catalog alias name
Multiple data sets can be cataloged in single user catalog
Alias helps to catalog data sets with different high-level qualifiers to be cataloged in a single
user catalog
Alias
MMA2
MMA1
Allocate
Process
- Add Records
- Modify Records
- Delete Records
Deallocate (delete)
Copy
Rename
Catalog
Compress
Member Management
Create, Modify, Delete, Copy, Rename
49
MVS
Through Application Programs
- On-line Processing
- Batch Processing
50
MVS
Generally dataset goes through three phases when handled through program :
Allocation
Processing
Deallocation
Allocation
The process of locating an existing dataset or space for a new dataset and preparing the system
control block needed to use the dataset is called Allocation
o Allocation occurs at 3 levels
Unit is selected and allocated e.g. SYSALLDA-DASD, TAPE
Volume is allocated
Dataset on that volume is allocated
Processing
o Processing involves 3 steps
Opening datasets
Processing I/O
Closing datasets
Deallocation
o Each file is automatically deallocated
when job is finished with it
o While deallocating, disposition of
dataset can be decided, whether you
want to retain the file
or should be deleted
51
MVS
52
MVS
o Erroneous Termination of job
Type of execution errors
Incorrect commands (command syntax errors)
Required resources (Data Sets, Program Library, Program Load Module) not available
Violation of access permissions for data sets, program load module etc.
Mismatch in data set status; as required by job and as it actually exists e.g. a create is issued
for a data set while data set which already exists
Program errors
Mismatch for Data set - Between program definition
and actual characteristics
Infinite loop
Data Type mismatch - numeric variable contains non-numeric data
Any abnormal termination of program is called as Abend
Job Management
Definitions
o
JOB - Is the execution of one or
more related programs in sequence
o
JOB STEP - Each program to be
executed by a Job is called a job step
o
JCL (Job Control Language) - Is a set
of control statements that provide the specifications necessary to process a job
o
JES (Job Entry Subsystem) :
Meant for job entry into system, also for job returning after completion
Shares the load on the operating system
Takes care of all inputs and outputs
Do simple basic syntax checking
Resource Initialization
Creation of address space
It is also known as Job Scheduler
Classified into
- JES2-design for uniprocessor environment
- JES3-design for multiprocessing environment (Decided at the time of system
initialization)
Jobs are sent to MVS depending on the class priority schemes
How Job Is Entered Into the System
When you submit the job, JES reads the job stream(sequence of JCL commands) from a DASD
file and copy it to a job queue, which is a part of a special DASD file called JES SPOOL.
Job Scheduling
How Job Is Scheduled For Execution
MVS does not necessarily process jobs in the order in which they are submitted. Instead, JES
examines the jobs in the job queue and selects the most important jobs for execution. That way
53
MVS
JES can prioritize its work, giving preference to more important jobs.
JES uses 2 characteristics to classify a jobs importance, both of which can be specified in the
jobs JCL : Job Class and Job Priority
If two or more jobs are waiting to
execute, the JES scheduler selects the one with higher priority
Each job class is represented by a single character, either a letter (A-Z) or a digit (0-9). Job
classes are assigned based on the processing characteristics of the job.
INITIATOR :- An initiator is a program that runs in the system region of an address space. Each
initiator can handle one job at a time. It examines the JES spool, selects an appropriate job for
execution, executes the job in its address space and returns to the JES spool for another job.
The number of active initiator on a system and as a result the number of address spaces eligible
for batch job processing determines the number of batch jobs that can be multi programmed at
once.
Each initiator has one or more job
classes associated with it. It executes jobs only from those classes.
Initiator
1
2
3
4
5
6
54
MVS
Once an initiator has selected job for
o
execution, it invokes a program called the interpreter
o
o
o
o
o
o
o
Job
JES
SPOOL
JCL
SYSOUT QUEUE
O/P DATA
SYSOUT
INITIATOR
SYSIN
PROGRAM
EXECUTION
INTERPRETOR
55
MVS
How A Job Is Purged
After the jobs output has been processed, the job is purged from the system, i.e. JES spool
space, the job used, is freed so it can be used by other jobs and any JES control blocks
associated with the job are deleted
56
MVS
System Region
Interpreter
Initiator
SWA
control block
System Region
Allocation
Initiator
SWA
control block
User Program
System Region
Initiator
57
MVS
SWA
CONTROL BLOCK
SYSTEM REGION
UNALLOCATION
INITIATER
When the user program completes, the initiator invokes Unallocation routine to Deallocate the
resources used by the job step
58
MVS
MVS
Since the job is executed in background, without user interaction, all information
required for the execution must be supplied in advance
JCL is used to specify this information
The most common information supplied through JCL is;
- To whom the job belongs (which user id)?
- What is the program / utility that is to be executed?
- Where (in which library / PDS) to find the load module of the program or utility?
- Where (which DASD volume / catalog, what data set name) to find the input data files
for the program / utility?
- Where should (which DASD volume, what data set name) the output files be created?
- The printer output should be directed to which printer?
What is JCL?
Connotation is; set for job commands stored as a MEMBER in a PDS e.g. JCL to
execute a batch program, JCL to compile and link a COBOL program, JCL to allocate a
VSAM data set, JCL to SORT and MERGE two Physical Sequential Data Sets
Thus, JCL is nothing but a set of commands
- User keys-in commands using a editor
- Saves as PDS Member e.g. PAYROLL.TEST.JCL(PROG1JCL)
Introduction
MVS
JES3 has additional scheduler functions than JES2 (e.g. schedule job at
specific time of the day, interdependent job scheduling )
Conversion
Converter program analyzes JCL statements
Converts into converter / interpreter text
Checks for Syntax errors
- If any error, Job is queued for output processing
- If no error, Job is queued for processing
Processing
o Selection based on job class and
priority
Selected job is passed to Initiator
Initiator invokes Interpreter
Interpreter builds control blocks from converter / interpreter text in a Scheduler Work Area
(SWA)
- SWA is part of address spaces private area
- Control blacks describe the data sets required by the job
Initiator allocates resources required by the Job
- Initiator starts the program to be executed
- Builds the user region
- Loads the program in the user region
- Transfers control to the program
On completion of the program execution, initiator de-allocates the resources
The process of allocation / execution and de-allocation is repeated for each job step
61
MVS
Initiator Characteristics
Each initiator can handle one job at a time
There can be multiple initiators
Each initiator has a job class associated with it
System Operators can control the number of initiators and the class/es associated with each
initiator
Input Data
Input data to the users program can be specified in the job
Called as in-stream data or SYSIN data
SYSIN data is read and stored in JES spool
SYSIN data is treated like a data coming from card reader
Output
Management of System Messages, User Data Sets that need to be Printed / Punched
Organized by output class and device set-up requirements
User s program can produce output data that is stored in a JES spool; called as SYSOUT
data
Each SYSOUT data is assigned an output class
Output class indicates the printer selection
Held Output
- Special class (usually Z) is assigned to hold the output
- Held output remains in the SYSOUT indefinitely
- Usually used to verify before printing
- User can change the class and thus release the held output
Hard-Copy
Local or remote processing
Device Selection
Queue the output for print /punch
Purge
Release SPOOL and Job Queue space
Intimate TSO user about job completion
Job Output
Output is produced at each stage job processing
Includes output produced by;
- JES
- MVS
- Users program where SYSOUT is allocated as output device
Job output is available to user (you can see it dynamically)
It can be viewed using ISPF
62
MVS
Component 1- Separator Page
Inserted by JES
Helps operator the segregate the job outputs when directed to printer
Component 2 part I Job Log
Spool usage
Execution time
Component 3 - JCL Listing
List of JCL that was processed for the job
Should be same as what user has created
Component 4 - Message Log
Includes details of
Resource Allocation
Program Execution
Resource De-allocation
Component 5 - SYSOUT
Each SYSOUT can have different characteristics e.g. class, record length etc.
VTAM Virtual Telecommunications Access Method
Multiple programs which are part of same application are executed within CICS
63
MVS
address space
CICS selects one program at a time for execution
CICS itself is multi-programmed by MVS along with other programs
Relational Implementation
RACF - Resource Access Control Facility
Utilities
64
MVS
An Introduction to TSO
Time Sharing
Resource sharing
MVS handles each TSO user as it handles batch jobs
The user specific batch job that starts up handles
what datasets are available
What terminal monitor program is to be used
what procedure to auto execute at logon
TSO Commands
Create program.
Edit program.
Compile program.
Linkedit a program.
View output.
Route output to a printer
Submit Jobs
Monitor job
View output
65
MVS
Route output
Help
Help on TSO commands can be obtained by typing HELP at the READY prompt.
66
MVS
F3=END
F9=SWAP
67
MVS
PA/PF Key Map
PF1 ===> HELP
PF2 ===> SPLIT
PF3 ===> END
PF4 ===> RETURN
PF5 ===> RFIND
PF6 ===> RCHANGE
PF7 ===> UP
PF8 ===> DOWN
PF9 ===> SWAP
PF10 ===> LEFT
PF11 ===> RIGHT
PF12 ===> RETRIEVE
PA1 ===> ATTENTION
PA2 ==> RESHOW
PF1 - PF12 Keys may be duplicated from PF13 to PF24 in 24 key mode.
Split Screen Mode and Tutorial (Help)
Some ISPF commands generate outputs. Printed output like this is collected and stored in a
special dataset call list dataset.
Whether the list dataset is to be retained, printed and/or deleted can be specified as a default in
the setup panels.
The ISPF operations done are recorded in a Log dataset. The disposition can be specified in the
defaults panel.
User Profile
Exiting ISPF
To terminate ISPF you can
type =x at the command line
or use the PF3 key to exit
If you havent specified default dispositions for your List and log datasets then the termination
panel is displayed.
68
MVS
Termination Panel
------------------- SPECIFY DISPOSITION OF LOG DATA SET --------------------COMMAND ===>
LOG DATA SET DISPOSITION
LIST DATA SET OPTIONS NOT AVAILABLE
----------------------------------------------------------Process option ===>
SYSOUT class
===>
Local printer ID ===>
VALID PROCESS OPTIONS:
PD - Print data set and delete
D - Delete data set without printing
K - Keep data set (allocate same data set in next session)
KN - Keep data set and allocate new data set in next session
Press ENTER key to complete ISPF termination.
Enter END command to return to the primary option menu.
Key Mapping
Option 0.3
------------------------ PF KEY DEFINITIONS AND LABELS -----------------------COMMAND ===>
NUMBER OF PF KEYS ===> 12
69
MVS
Browsing Datasets (Option 1)
------------------------- BROWSE - ENTRY PANEL -----------------------------COMMAND ===>
ISPF LIBRARY:
PROJECT ===> DA0034T
GROUP ===> TRG
===>
===>
===>
TYPE
===> JCL
MEMBER ===>
(Blank or pattern for member selection list)
OTHER PARTITIONED OR SEQUENTIAL DATA SET:
DATA SET NAME ===>
VOLUME SERIAL ===>
(If not cataloged)
DATA SET PASSWORD ===>
MIXED MODE
===> NO
FORMAT NAME
===>
Browse Commands
Cols - for displaying Columns
Scroll up, down, left right with PF7, PF8, PF10 and PF11 respectively.
Set Scroll amount to CRSR, HALF, PAGE, n lines, max, DATA
Scroll by n lines, to top or bottom
Define/LOCATE {line number}/label.
FIND string {NEXT/PREV/FIRST/LAST/ALL}.
PF5 for repeat find and use of &.
Use of PF12 to recall last command.
Terminate Browse with PF3 Key.
FIND string {NEXT/PREV/FIRST/LAST/ALL} {CHAR/PREFIX/SUFFIX/WORD} col-1
col-2
Column limitation search
T text - for case insensitive search
X hex-string for a hex search
70
MVS
Insert 1 or n lines.
Delete line or n lines.
Delete the block marked by the 2 DD line commands.
Repeat 1 or n lines.
Repeat the block marked by the 2 RR line commands.
Copy 1 or n lines.
Copy the block marked between the 2 CC line commands.
Move 1 or n lines.
Move the block marked between the 2 CC line commands.
Copy or Move lines 1 or n times after this line.
Copy or Move lines 1 or n times before this line.
71
MVS
Edit Profiles
Profile Settings
72
MVS
Edit Modes
STATS ON/OFF
Controls dataset statistics
AUTOLIST ON/OFF
Controls Automatic listing
NULLS ON/OFF
Controls if nulls or spaces are padded.
RECOVERY ON/OFF Recovers a dataset being edited in case of a system crash. It also
permits
The use of the UNDO command. This works up to the last save only.
HEX ON/OFF
Displays data in HEX/ASCII mode.
CAPS ON/OFF
Converts Lower case letters to upper case if set to on.
Line command for this function are LC or UC. LCLC & UCUC are blocked line commands.
PACK ON/OFF
Specifies that the data is store in compressed mode.
AUTOSAVE ON/OFF PROMPT/NOPROMPT Auto save data when PF3 key is pressed
IMACRO
Specify initial macro to be run at startup.
is denoted by 2 labels
is the string to be found
start search at current line and locate the next occurrence of the string (default).
start search at current line and locate the previous occurrence of the string.
locate the first occurrence of the string
locate the last occurrence of the string
Same as first but count the occurrences in the file.
any occurrence of the string
string must be at the beginning of the word
string must be at the end of a word
Search only excluded/Non excluded lines
starting and ending column numbers defining the search boundaries.
73
MVS
Shifting text source
<--------------Data shift----------> <---------- Column shift ----------->
<
<n
<<
(
(n
((n
left shifts
>
>n
>>
)
)n
))n
right shifts
Data shifts
Utilities Menu
Option 3
------------------------- UTILITY SELECTION MENU ---------------------------OPTION ===>
1 LIBRARY
74
MVS
Library Utility
Option 3.1
---------------------------- LIBRARY UTILITY -------------------------------OPTION ===>
blank - Display member list B - Browse member
C - Compress data set
P - Print member
X - Print index listing
R - Rename member
L - Print entire data set
D - Delete member
I - Data set information
E - Edit member
S - Data set information (short)
ISPF LIBRARY:
PROJECT ===> DA0034T
GROUP ===> TRG
===>
===>
===>
TYPE ===> JCL
MEMBER ===>
(If "P", "R", "D", "B", "E" or blank selected)
NEWNAME ===>
(If "R" selected)
OTHER PARTITIONED OR SEQUENTIAL DATA SET:
DATA SET NAME ===>
VOLUME SERIAL ===>
(If not cataloged)
DATA SET PASSWORD ===>
75
MVS
Dataset Utility
Option 3.2
---------------------------- DATA SET UTILITY ------------------------------OPTION ===> A
A - Allocate new data set
C - Catalog data set
R - Rename entire data set
U - Uncatalog data set
D - Delete entire data set
S - Data set information (short)
blank - Data set information
M - Enhanced data set allocation
ISPF LIBRARY:
PROJECT ===> DA0034T
GROUP ===> TRG
TYPE ===> JCL
OTHER PARTITIONED OR SEQUENTIAL DATA SET:
DATA SET NAME ===>
VOLUME SERIAL ===>
(If not cataloged, required for option "C")
DATA SET PASSWORD ===>
(If password protected)
76
MVS
Renaming Dataset
Option 3.2.R
---------------------------- RENAME DATA SET -------------------------------COMMAND ===>
DATA SET NAME: DA0034T.TRG.JCL
VOLUME:
BS3008
ENTER NEW NAME BELOW:
ISPF LIBRARY:
PROJECT ===> DA0034T
GROUP ===> TRG
TYPE ===> JCL
OTHER PARTITIONED OR SEQUENTIAL DATA SET:
DATA SET NAME ===>
Dataset information
Option 3.2.s
-------------------------- DATA SET INFORMATION ----------------------------COMMAND ===>
DATA SET NAME: DA0034T.TRG.JCL
GENERAL DATA:
CURRENT ALLOCATION:
Management class:
MCSTANDS
Allocated blocks:
Storage class:
SCNORM
Allocated extents:
Volume:
BS3008
Maximum dir. blocks:
Device type:
3390
Data class:
Organization:
PO
CURRENT UTILIZATION:
Record format:
FB
Used blocks:
Record length:
150
Used extents:
Block size:
1500
Used dir. blocks:
1st extent blocks:
26
Number of members:
Secondary blocks:
12
Data set name type: PDS
Creation date:
Expiration date:
1996/08/08
***NONE***
77
26
1
1
11
1
1
5
MVS
Allocate datasets managed by SMS
------------------------ ALLOCATE NEW DATA SET -----------------------------COMMAND ===>
DATA SET NAME: DA0034T.TRG.JCL
MANAGEMENT CLASS
===> MCSTANDS (Blank for default management class)
STORAGE CLASS
===> SCNORM (Blank for default storage class)
VOLUME SERIAL
===>
(Blank for authorized default volume)
DATA CLASS
===>
(Blank for default data class)
SPACE UNITS
===> BLOCK
(BLKS, TRKS, CYLS, KB, MB or BYTES)
PRIMARY QUANTITY
===> 26
(In above units)
SECONDARY QUANTITY ===> 12
(In above units)
DIRECTORY BLOCKS
===> 1
(Zero for sequential data set) *
RECORD FORMAT
===> FB
RECORD LENGTH
===> 150
BLOCK SIZE
===> 1500
DATA SET NAME TYPE ===> PDS
(LIBRARY, PDS, or blank)
*
EXPIRATION DATE
===>
(YY/MM/DD, YYYY/MM/DD
YY.DDD, YYYY.DDD in Julian form
DDDD for retention period in days
or blank)
(* Specifying LIBRARY may override zero directory block)
78
MVS
Move / Copy
Option 3.3
--------------------------- MOVE/COPY UTILITY ------------------------------OPTION ===>
C - Copy data set or member(s)
M - Move data set or member(s)
L - Copy and LMF lock member(s)
P - LMF Promote data set or member(s)
79
MVS
Move / Copy- 2
COPY --- FROM DA0034T.TRG.JCL ------------------------------------------------COMMAND ===>
SPECIFY "TO" DATA SET BELOW.
TO ISPF LIBRARY:
PROJECT ===> DA0034T
GROUP ===> TRG
TYPE
===> JCL
TO OTHER PARTITIONED OR SEQUENTIAL DATA SET:
DATA SET NAME ===>
VOLUME SERIAL ===>
(If not cataloged)
DATA SET PASSWORD ===>
80
MVS
DSLIST Utility
Option 3.4
--------------------------- DATA SET LIST UTILITY ----------------------------OPTION ===>
blank - Display data set list *
P - Print data set list
V - Display VTOC information only PV - Print VTOC information only
Enter one or both of the parameters below:
DSNAME LEVEL ===> DA0034T.TRG.*
VOLUME
===>
INITIAL DISPLAY VIEW ===> VOLUME (VOLUME,SPACE,ATTRIB,TOTAL)
CONFIRM DELETE REQUEST ===> YES (YES or NO)
* The following line commands will be available when the list is displayed:
B - Browse data set
C - Catalog data set F - Free unused space
E - Edit data set
U - Uncatalog data set = - Repeat last command
D - Delete data set
P - Print data set
R - Rename data set X - Print index listing
I - Data set information M - Display member list
S - Information (short) Z - Compress data set TSO cmd, CLIST or REXX exec
81
MVS
DSLIST Commands
M
C
D
E
F
I
M
P
R
S
U
X
=
Member list
Catalog a dataset
Delete a dataset
Edit a dataset
Free unused dataspace in a dataset
Display information for a dataset
Display a memberlist
Print a dataset
Rename a dataset
Display a shortened version of dataset information
Uncatalog a dataset
Print a dataset indexed listing
Z
Repeat the last command
Compress a dataset
Primary Commands
LOCATE
To locate a dataset
TSO SUBMIT
To execute Clists from the command line
SHOWCMD ON/OFF To show the expanded form of the command
CONFIRM ON/OFF Same as Confirm delete request Yes/NO on the delete panel
SORT
Sorts the dataset list based on the fields shown on the next transparency
FIND
Finds occurrence of a string with the list of datasets
SAVE dataset-name Saves the current dataset list into the datasetname specified
SELECT pattern [linecommand]
To make a selection of datasets to be acted upon determined
by the line command
82
MVS
Reset
Option 3.5
-------------------------- RESET ISPF STATISTICS ---------------------------OPTION ===>
R - Reset (create/update) ISPF statistics
D - Delete ISPF statistics
NEW USERID
===>
(If userid is to be changed)
NEW VERSION NUMBER ===>
(If version number is to be changed)
RESET MOD LEVEL ===> YES (YES or NO)
RESET SEQ NUMBERS ===> YES (YES or NO)
ISPF LIBRARY:
PROJECT ===> DA0034T
GROUP ===> TRG
TYPE ===> JCL
MEMBER ===>
(Blank or pattern for member selection
list, '*' for all members)
OTHER PARTITIONED DATA SET:
DATA SET NAME ===>
VOLUME SERIAL ===>
(If not cataloged)
83
MVS
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
FIND a particular string in your program & REPLACE it with other value.
13.
14.
SPLIT up the sessions & work in 2nd sessions ISPF to work with JCL.
15.
DELETE the least important member from your PDS. Delete the member less PDS.
84
MVS
MVS JCL
BY
BY
IBM
BY
DAVID SHELBY KIRK
CARANTHSIS MANI
BY
DOUG LOWE
BY
85
DOUG LOWE