MVS Concepts Lesson 1
History and Basics
by
Philip L. Yuson
Copyright © Concept Solutions Corporation
Learning Objective
By the end of the course, the learner will be able to:
Copyright © Concept Solutions Corporation
Basic Components of a Computer
Processor
Memory
All computers have a processor, memory and input output devices.
Copyright © Concept Solutions Corporation
Basic Components of a Computer
The input/output devices are interfaces that the user uses to interact with the processor
The data can be used immediately or stored and used whenever it is needed.
Copyright © Concept Solutions Corporation
Basic Components of a Computer
Processor
The processor is responsible for controlling everything in the computer system.
It executes commands to perform specific functions.
Copyright © Concept Solutions Corporation
Basic Components of a Computer
Memory
The memory contains data that the processor uses
Copyright © Concept Solutions Corporation
Mainframe Computer
A mainframe computer functions the same way as a basic computer.
Copyright © Concept Solutions Corporation
Operating System
Some basic functions in a computer system can be repeated. Examples of these will be reading or writing to an I/O device, managing memory or managing the workload within a system.
These functions are controlled by programs that directly operate the processor and hardware. These programs are called operating systems.
An operating system therefore is a set of programs that provide common functions to other programs. It also controls how the processor operates and manages tasks.
The mainframe operating system has undergone several iterations. It is currently called z/OS. It used to have several versions but the more popular name is MVS which stands for Multiple Virtual Storage.
Copyright © Concept Solutions Corporation
Virtual Storage
Processor
Memory
Remember this diagram? The memory is limited by its physical size.
In a PC, when you buy 4 GB of memory, that is the physical size of your memory.
Copyright © Concept Solutions Corporation
Virtual Storage
The mainframe operating system allows you to increase your storage to say 8GB or more even if you have a physical memory of 4GB.
MVS can have virtual storage of up to 263 Bytes.
The resulting available storage is called virtual storage.
4 GB
Real Memory
263 B
Virtual Storage
Transformed to
Copyright © Concept Solutions Corporation
Virtual Storage
For our course, it is sufficient to say that the operating system manages the resources that allow you access to memory that is more than your physical memory.
4 GB
Real Memory
8 GB
Virtual Storage
Transformed to
Copyright © Concept Solutions Corporation
Single Virtual Storage
Other operating systems may be able to give you virtual storage, but this virtual storage is allocated among all the tasks in the system.
Let us say you have 1000 tasks running in your system, and your system gives you a virtual storage of 4GB, that 4GB is split between the 1000 tasks running.
This virtual storage is allocated between all the tasks running in the system
Copyright © Concept Solutions Corporation
Multiple Virtual Storage
MVS does not only give you virtual storage, it gives you multiple virtual storage.
If you have 1000 jobs in your system, each of these jobs can theoretically have 263 B of virtual storage!
Each job has its own address space.
4 GB
Virtual Memory
4 GB
Virtual Memory
4 GB
Virtual Memory
8 GB
Virtual Storage
THAT’S A LOT OF STORAGE FOR ONE JOB!!!
Copyright © Concept Solutions Corporation
Multitasking
MVS allows more than one program to execute at any time. This feature is called multitasking.
Multi-tasking is managed by the operating system.
4 GB
Virtual Memory
4 GB
Virtual Memory
4 GB
Virtual Memory
32 GB
Virtual Storage
Copyright © Concept Solutions Corporation
Multitasking
This allows the computer to process more than one program at the same time. On the PC, we see this happening. You may be surfing the web and later, be typing an email while your browser is still open.
On the mainframe, you can have several programs running concurrently. One could be managing your transactions, another could be processing batch jobs while another could be processing your transactions.
This maximizes the use of your computer system.
Manage Transaction
Batch job
Process transaction
MVS System
Copyright © Concept Solutions Corporation
How MVS Manages Work
MVS manages work in Jobs. A job is a single unit of work. It can be made up of several programs executed in sequence.
Jobs are controlled using job control cards. These cards are coded in Job Control Language (JCL).
When working on the mainframe, you will often hear the term JCL.
JCL is referred to the language used to create the job control cards. It is also used to refer to the job control cards itself.
The subsystem that manages the entry and output of jobs is called the Job Entry Subsystem (JES). The more popular job entry subsystem is called JES2.
Copyright © Concept Solutions Corporation
Types of Jobs
There are several types of jobs in MVS. All these need JCLs to execute:
Copyright © Concept Solutions Corporation
Job Control
In the early incarnations of MVS:
Today, there are no more physical card readers. JES reads these cards through a logical reader.
Sample punch card
Copyright © Concept Solutions Corporation
Job Entry
JES2 check for syntax
JCL
Job Input Queue
Submit to JES2
Copyright © Concept Solutions Corporation
JES Initiators
Initiators are controlled by JES2. These are basically system started tasks that look at the input queue and process jobs based on their class.
Copyright © Concept Solutions Corporation
Job Initiation
Job Input Queue
Initiator
Initiator
Initiator
Initiator
Initiator
Copyright © Concept Solutions Corporation
Job Execution
Copyright © Concept Solutions Corporation
Job Printout
Program
SPOOL
Output
Copyright © Concept Solutions Corporation