100% found this document useful (1 vote)
489 views38 pages

Mainframe Administration Material

Mainframe console monitoring involves responding to WTO and WTOR messages. WTO messages inform operators of events while WTOR messages require immediate attention. Console modes like RD, R, and N determine how messages are handled. Spool monitoring checks job status and resource usage to identify looping or resource-intensive jobs. The IPL process loads the operating system from auxiliary storage to central storage and initializes resources and address spaces. Shutdown involves stopping subsystems like CICS, DB2, TCPIP, and JES before powering off the LPAR through the HMC.

Uploaded by

Banu Prakash T M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
489 views38 pages

Mainframe Administration Material

Mainframe console monitoring involves responding to WTO and WTOR messages. WTO messages inform operators of events while WTOR messages require immediate attention. Console modes like RD, R, and N determine how messages are handled. Spool monitoring checks job status and resource usage to identify looping or resource-intensive jobs. The IPL process loads the operating system from auxiliary storage to central storage and initializes resources and address spaces. Shutdown involves stopping subsystems like CICS, DB2, TCPIP, and JES before powering off the LPAR through the HMC.

Uploaded by

Banu Prakash T M
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 38

Mainframe 

Administration Material                                              

                                               
                 
`Console Monitoring: 
            We reply to outstanding message.

There are two types of the message comes in console.
1) WTO: Write To Operator – Which will informs to operator to perform some
Operations after some time.
                   IEF125I  Logged on
                   IEF126I – Logged off
                   IEF403I – Job/subsystem is started.
                   IEF404I  Job/subsystem is cancelled.
                   IEE360I – New SMF man dataset is started
                   IEF649I – DD statement exceeds the limit.
                                      
2) WTOR: Write To Operator Reply – Which needs immediate attention by operator.
               IEE362A – One SMF man dataset is filled
               IEA231A – Buffer shortage.
               
There are three different types of mode,
Roll Delete (RD) Mode: Except WTOR message rest of the message will be automatically
rolled and delete.
Roll (R) Mode: The entire message rolled and deleted automatically.
None (N) Mode: If the first ten messages generate, we can not see the further happening
message, then it hangs system totally, then Buffer shortage will happen, to clear the buffer
shortage problem we can use this commands.

K  To clear the all WTO message.
K E, particular line  To clear WTOR message of a particular line.
K S – To show the current mode.
K S,DEL = R,RD,N – To change one mode to another mode.
K Q – To clear the WTO and WTOR message.
K E,D  Erase bottom display area an console.

Display command used in console:
/D R,L  Display outstanding request
Mainframe Administration Material                                              

                                               
                 
/D C,L  Display Console
/D C.B  Its display the console buffer
/D C,K  Display list of Control command operands 

SPOOL Monitoring:
It contains status and history of the job.

           If the job is going in loop we find through TGNUM(Track Group Number), if it
exceeds more than three, for eg: TGNUM=4, then job is going in loop, immediately I need
to cancel or purge the job. Then user will get S222 ABEND code for that job. If the job can be
not cancelled we can cancel or purge the job with help of ASID.
           As soon as spool crosses 80% we will get a WTOR message in the console.
                             $hasp050 – Shortage of JES Resource
           Immediately I will check the job which is using more than 5% of spool area using
command
                    /$D jobq,spl=(%>=5)  it will display the job which is using more than 5% of
spool area.
           I will cancel all the development and testing job which is using more spool volume.
           If it is a production job I will inform to job owner, in mean time, I will also open a
ticket using service center and closely follow till the job gets over.
       Still, the production job continuously use the more spool area, I will cancel the job
and inform the user.

The other way of monitoring spool:
                    In SDSF* we have an option H.
In option H, we can see all the output and printed job.
I will purge the job which is older than n number of days.
                    /$Po jobq,ready,all,a=n
Mainframe Administration Material                                              

                                               
                 
IPL PROCESS   

Initial program load is loading of OS from Auxiliary storage to central storage
executing it.

IPL Internal Process:
      
IPLable disks contain a bootstrap module  at cylinder 0 track 0. At  IPL, this bootstrapis
loaded into storage at real address zero and control is passed to it.

The  bootstrap then reads the IPL control  program IEAIPL00 (also known  as IPL  text)


and passes control to it.

IEAIPL00   first It   clears   central   storage   to   0   before   storage   areas   for   the   master
scheduler.

It locates the SYS1.NUCLEUS data  set on the  SYSRES volume  and  loads a  series of


programs from it known as IPL Resource Initialization Modules (IRIMs).

IRIMS Read the LOADPARM information entered on the hardware console at the time
the IPL command was executed.

IRIM wills first attempt to locate LOADxx in SYS0.IPLPARM. If this is unsuccessful, it
will look for SYS1.IPLPARM.

Load MVS nucleus.

The  last  of the  IRIMs then  loads the  first  part  of the  Nucleus Initialization Program


(NIP), which invokes the Resource Initialization Modules (RIMs),

• It then communicate with console
• initial virtual storage in master scheduler address space
• all other routines.
• create address space for primary and secondary subsystem.

Three types of IPL start:
Mainframe Administration Material                                              

                                               
                 
Cold Start:
           Load PLPA but does not preserve vio datasets.
Quick Start:
           Does not reload PLPA and not preserve vio datasets.
Warm Start:
           Does not preserve PLPA , but preserve vio datasets.

IPL Startup Process:

Logon to HMC panel. 
Goto console action and click start 3270 emulator. 
In HMC panel, select the group, it will display two icon. CPC and Image.
First goto CPC and click CPC name and select the POR in daily activity panel.
Goto to HMC panel and select the image and click the image.
Select the particular LPAR and click activate in daily activity panel. 
Start the subsystem

SET SMF=00 ( to activate man dataset it will record the all system in mainframe)

02, WARM, NOREQ

S VTAM (communication between server and terminal)

S TSO ( to share the operating system from terminal)

S TCPIP (connection between server and terminal)

#START DB2 

S CICSC001 

Shutdown the IPL Process:
            Before performing IPL shutdown. I will send a message to the TSO user to cancel
the TSO session.
Mainframe Administration Material                                              

                                               
                 
           By using /D TS,L or /D A,L it will display currently logged on user. If it zero I will
start to bring subsystem down

C CICSCC001                                                    TO STOP CICS

#STOP DB2                                                        TO STOP DB2

P TCPIP                                                              TO STOP TCPIP

P TSO                                                                 TO STOP TSO

P RMF                                                                TO STOP RMF

Z NET,QUICK                                                   TO STOP VTAM

C SYSLOGD1                                                    TO STOP SYSLOGD1

$PI                                                                       TO CANCEL   INITIATORS

F BPXOINIT,SHUTDOWN=FORKINIT          TO STOP OMVS

$P JES2,TERM                                                   TO STOP JES

SET SMF =01

Z EOD ( stores the internal ip/op device error)

Logon to HMC panel
o In HMC panel, select the group, it will display two icon. CPC and Image.
o First goto image and select the particular LPAR and click deactivate in Daily
Activity Panel
o In HMC panel select the CPC and click the CPC recovery in daily activity
panel and click shutdown in daily activity panel.
Mainframe Administration Material                                              

                                               
                 

LPAR can be created through HMC panel and also in PR/SM.

LPAR: Logical partition we can partition the processor according to our requirement.

CPC: Central Processor complex. It consists the setup of central processor and channel
subsystem and storage and hardware.

POR : Power On Reset. It will check the all hardware configuration of mainframe whether
working properly or not.

JES: Job Entry subsystem – After submission of job, jes will be take care of the job.

There are Six different phases:

Input : After submission of job, job will be placed in jes input queue.
Conversion: It will convert to machine readable language by using interpreter.
Execution : Depends on the prty of the job, it will execute the job.
Output: After the execution of job, it will place job in jes output queue.
Hardcopy: After the execution of job, it will directly sent to printer, which will be
specified in msgclass.
Purge: We can delete the job for the spool maintenances.

Diff b/w JES2 and JES3:
Jes2:                                                                          Jes3 
Decentralized                                                           Centralized   
Prty=15                                                                     Prty=14
Monoplex                                                                 Sysplex
Only certain operation can be performed                All operation can be performed

Single jes3 can control the n number of jes2.

Display command:

/D T  display time and date of server.
Mainframe Administration Material                                              

                                               
                 
/D TS, L   display list of active user on system,
/D J, L  display various subsystem in a system.
/D A,L  display active user and active subsystem.
/D IPLINFO  display information about IPL
/D SMF  display MAN dataset
/DD CLEAR, DSN=ALL  clear all dumps
/D D,T  Show dump datasets
/D R,L  Display outstanding request
/D u,TAPE  Display status of Tape
/D u,DASD  Display various DASD active
/D XCF  Display sysplex name
/D M=CPU  Display information related to CPU.     
/D M=CHP  Display channel path
/D C,L  Display Console
/D PFK  Display key configuration
/C U=USERID  Cancel TSO session.
/D OPDATA  It display subsystem prefixes.
/D SSI  It display all subsystem
/D M=DEV  Its display all path to devices.

JES Command

$D INIT                                Display all initiators              
$A                                         Release all held jobs 
$A ' jobname'                        Release specific job. Quotes required. 
$C 'jobname'                          Cancel job or user 
$DA,ALL                              Status of all JES2 functions 
$D ' jobname'                        Display JES status of job or user 
$E ' jobname'                         Restart job after it completes 
$D spl                                    Display spool ultization and spool volume.
$D jobq                                  Display the job queue.
$D I                                        display the status initiator.
$H A or $H ' jobname'           Hold jobs 
$P ' jobname'                          Purge a job (including spooled output) 
$T I3,C=AB                           Assign job classes for an initiator 
$DN                                        Display input queues 
Mainframe Administration Material                                              

                                               
                 
$DQ                                        Display queues 

System Management Facility (SMF)

SMF is mainly used for billing purpose. It records the all the system happening. It consists
system relate information and job relate information.

Systemrelated SMF records include information about the configuration, paging activity,
and workload.

Jobrelated records include information on the CPU time, SYSOUT activity, and data set
activity of each job step, job, APPC/MVS transaction program, and TSO/E session.

SMF Report Generation:
Step1: Transfer contents of SMF data sets to another data set (PS) using IFASMPDP utility.
Step2: We need to sort the record according to our organization need by using ICETOOL
utility.
Step3: Using Load utility we need to insert data from dataset to table.
Step4: Using FTP, we can convert Table into MS Excel.

SMS:
Non SMS Managed volume : While creating the dataset if we mention the volume where
the dataset should resides.

SMS Managed volume : While creating the dataset if we not mention the volume, it will
automatically allocate in available volume by using ACS Routine.
ACS Routine which contains the
Data Class: Specify Dataset allocation parameter.
Storage Class: Availability and Performance.
Management Class: Specify Dataset Backup and Migration criteria.
Storage Group: A Group of one or more DASD Volumes than SMS uses for data set
allocation.
Mainframe Administration Material                                              

                                               
                 
CONTROL DATASETS:
Source Control Dataset.
Active Control Dataset
Communications Dataset
Source Control Dataset. (SCDS)
           The SCDS contains a set of SMS classes and groups ant translated routines that
implements specific set of storage management policies.
Active Control Dataset. (ACDS)
       The ACDS is the the system active copy of the current SCDS.When you activate a
configuration, SMS copies the existing configuration from the specified SCDS into ACDS.
Communications Dataset(COMMDS)
   The COMMDS dataset contains the name of the ACDS and storage group volumes
statistics. Its enables communication between SMS system in a Multiples system
Environment.

Backup:
Physical Backup: If we want to take backup for entire volume.
Logical Backup:  If we want to take backup for particular userid which may reside in
different volume.
Restoring: Copying a dataset from tape to DASD.
Compress: It is used to compress the all unused space in dataset.
Defrag: It is used to compress the all unused space in one side and used space in other side.
Release: Onces compress utility is executed, it will release the all the unused space.

 Utility:                                    
ADRDSSU  :Compress, Physical backup, Defragmentation, Logical backup, Restorage
IEHINITT  : For Tape initialization.
ICKDSF      : For DASD initialization. 

Customization of Parmlib: 

1)Handling Spool Shortage:

Permanent : 
Mainframe Administration Material                                              

                                               
                 

cpac.parmlib in jes2parm

SPOOLNUM=32 ( we need to increase in value)

Note: If the maximum of 253 spool volumes is exceeded during a cold start, JES2 issues a
message informing the operator that more spool volumes were found than expected from the
SPOOLNUM parameter on the SPOOLDEF initialization statement.

Temporary:
We can do by three ways:
1) starting the new volume:
$S SPL(DSRED1)
2) Holding or Halting the volume:
$Z SPL,V=(DSRED9)
3) Purging or Drain:
$P SPL(DSRED9)
2) Changing the TSO Timeout:
After a period of inactivity, TSO will automatically log a user off. 

cpac.parmlib in SMFPRM00

JWT(0030)  /* After 30 mins it will automatically log off the session if in inactive.

3) Changing the TSO Maxuser:
Maximum user can be use mainframe session in same time.

Permanently:
Maxuser value should be changed in all the below Parmlib member.

Sys1.parmlib          IEASYS00
Cpac.parmlib        TSOKEY00
Tcpivp.tcpparm    PROFILER
Cpac.vtamlst         A0600

Temporarily:
Mainframe Administration Material                                              

                                               
                 
F VTAM,TSO,USERMAX = 600

SMP/E Product installation:
Omegamon: Job Monitoring Tool.
1) Download the omegamon Package.
2) Create the HFS file and in OMVS directory.
3) Transfer the file using FTP, available for the host.
4) Update the sample job and install the package
5) Unpax using utility(IKJEFT01) means decompress it.
6) Gimunzip(transferring wise to mainframe0
7) Create SMP/E dataset using utility IEFBR14
8) Create CSI dataset using IDCAMS
9) Initialize zpool which is present in sys1.maclib using repro command utility used in
Gimzpool
10)Create zones global, target, distribution using utility Gimsmp
11)DDDEF we have using Gimsmp
12)SMP/E receive command.
13)Creation of target & distribution libraries IEFBR14 utility.
14)Check with apply command using Gimsmp.
15)Then apply Command.

SMP/E
SMP/E is a tool designed to manage the installation of software products on your z/OS
System and to track the modifications you make to those products

There are two types of libraries:

a. Target libraries

Target libraries contain the executable code needed to run your system (for example, the
libraries from which you run your production system or your test system).

b. Distribution libraries

Distribution libraries (DLIBs) contain the master copy of each element for a system. 
Mainframe Administration Material                                              

                                               
                 

Types of Symonds.
1. Function Symonds.
These introduce a new product, a new version or release of a product, or updated functions
for an existing product into the system.

2. PTFs
When a problem with software is discovered. IBM supplies customer with tested fix for that
problem. This will come in form of program temporary fix.

3.  APAR Symonds
   As times you ill find it necessary to correct a serious problem that occur on your system
before PTF is ready for distribution. Therefore in this circumstance IBM supplied with you
authorized program analysis report.

4.  USERMOD SYSMOD
                 This Sysmod can be used to replace or update an element or to introduce a totally
new written event to your system. The USERMOD is created by you to either to modify
IBM code or to add your own code to system.

SYSMODs are composed of two parts:

1. Modification control statements (MCS) : It contains the information about  the product.

2. Modification text, which is the object modules, macros, and other elements supplied by
the SYSMOD.

SYSMOD packages.
1. CBPDO 2.Serverpac 3.Systempac.  4. Entery Server Offering. 5. Software Excel.

TARGET ZONE:
It is used to record information about status and structure of operating system or target
libraries.
Mainframe Administration Material                                              

                                               
                 
GLOBAL ZONE:
Entries needed to identify and describe each target and distribution zone to SMP/E.
Information about SMP/E processings.

CSI DATASETS
It contains all information about SMP/E need to track distribution and target libraries.
CSI contain entry for each element in its system which describes element name, type,
history, how the element was introduced in system.

Receive: It will place sysmod to global zone.
Reject: It will clear from the global zone place it back to sysmod.
Apply: The content of product in global zone it will place in target zone.
Accept: if we are statisfied with product so that we can give accept command and it
will place in distribution zone.
Restore: It will clear the  target zone and it will take the product from global zone
place into target zone.

Page Dataset: 
                      Page dataset is used to transfer the page from auxiliary storage to main
storage. It is an virtual storage in other terms we can say it is used to auxillary storage and
managed by  Auxiliary Storage Manager (ASM).
Mainframe Administration Material                                              

                                               
                 
As your workload increases, there may be a shortage of auxiliary storage. When the system
detects 70 percent of space are already in use, it issues the following message:

IRA200E AUXILIARY STORAGE SHORTAGE

The system rejects LOGON, MOUNT, and START commands until the shortage is relieved.
If no action is taken, the system issues the following message when 90 percent of all
available auxiliary storage is in use:

IRA201E CRITICAL AUXILIARY STORAGE SHORTAGE

The solution to this problem is to increase the auxiliary storage  by
Defining new page dataset and define in IEASYSxx.

Syntax to create page dataset:
DEFINE PAGESPACE( 
FILE(PAGELOC) 
NAME(PAGE.CPAC.LOCAL3) 
CYLINDERS(200) 
VOLUME(DSRED6) )

To relate a newly created page dataset to give the following command

PAGEADD PAGE=PAGE.CPAC.LOCAL3

To view the status of these page dataset issue the following command;

/D ASM
IEE200I 02.28.37 DISPLAY ASM 539
TYPE           FULL     STAT    DEV                  DATASET NAME
PLPA            67%     OK         0802  PAGE.CPAC.PLPA
COMMON    13%      OK        0802   PAGE.CPAC.COMMON
LOCAL         25%      OK        0802                PAGE.CPAC.LOCAL1
LOCAL         23%      OK        0802                PAGE.CPAC.LOCAL2
LOCAL           3%      OK        0802  PAGE.CPAC.LOCAL3
NO SWAP DATASETS ARE IN USE PROD.LOCAL3AGEADD COMMAND 531
Mainframe Administration Material                                              

                                               
                 

LOGREC:
                  LOGREC will contain information about machine failures such us processor
failures, I/O errors and program error recording etc.
                These info will be stored in Logrec dataset, this dataset is specified in IEASYSxx
Parmlib member, Parameter is

                         LOGREC = SYS1.CPAC.LOGREC
               To initialize a logrec dataset we are using utility pgm = IFCDIP00

                If we are working in multisystem environment each system(LPAR0 should have
unique LOGREC dataset.
           If  LOGREC Dataset reaches 90% then it will through the following message to
console.
IFB080E LOGREC DATA SET NEW FULL, DSN=SYS1.LOGREC

If  LOGREC is completely full then it will display time with message.

IFB081I LOGREC DATA SET IS FULL, hh.mm.ss, DSN=SYS1.LOGREC

 To clear the LOGREC Dataset we are using utility program = IFCEREP1

RMF:
Resource Measurement Facility is mainly used for performance. We can configure and tune
the product according to our organisation need.

RMF has three data gatherers/reporters known as monitors:
Monitor I  Longterm data collection
Monitor II  Online snapshot monitoring
Monitor III  Online shortterm and longterm data gathering.

Its parameter defined in ERBRMFxx member located in SYS1.IBM.PARMLIB. Default is
ERBRMF00 . Default value for data gathering is one second and for data recording 30
minutes.
Mainframe Administration Material                                              

                                               
                 

RACF: Resource Access Control Facility is z/OS security server, it is mainly used for
security purpose. And also give the access to protected resource.
Major roles function are give the access to protected resource, recording and reporting the
access attempts.

Profile: RACF stores all the information about the user, group and resources in profile.

User: An individual member can be identified by his unique id and password
Group: A Group is collection of RACF User who share common access requirements to
protected resource or who has similar attribute within the system.
Resource: Any information stored on computer system such as dataset, terminal and
volume.
Dataset : Dataset can be protected using discrete or generic dataset profile.
Discrete: one profile used to protect one resources,
Generic – one profile used to protect more than one resource.

RACF Database: A RACF Database contain information about all the profile and other
resources defined to RACF.

RACF MODEL: Model is a parameter that specifies the name of the dataset profile to be
used as a model for the new dataset profile.

RACF Command:
To create userid:
ADDUSER mani001 name(Mani) OWNER(ARICH01) SUPGROUP(manigrp)

To list userid:
Lu mani001

To Delete the userid:
DU mani001

Alter userid:
Mainframe Administration Material                                              

                                               
                 
ALU mani001 name(manivannan)
ALU mani001 owner(newowner)
ALU mani001 revoke
ALU mani001 resume
ALU mani001 password(thusali) resume

Profile Group:
To create Group:
AG manigrp supgroup(aricgrp) owner(arich01)
To alter Group:
ALG manigrp owner(newowner)

To list Group:
Lg manigrp

To delete Group:
Dg manigrp

Profile connect:
COnnect mani001 group(newgrp)
Alu mani001 Dfltgrp(newgrp)
Remove mani001 group(oldgrp0

Profile Dataset:
To Protect the dataset:
To define dataset to racf with universal access none
ADDSD ‘mani001.**’ UACC(NONE)
TO permit dataset to other with access read or update
PERMIT ‘mani001.**’ ACC(READ/UPDATE) ID(babu001)

Alter dataset protection:
ALTDSD ‘mani001.**’ acc(read) id(babu001)

List dataset protection:
LISTDSD ‘mani001.**’
Mainframe Administration Material                                              

                                               
                 

To delete dataset protection:
DELDSD ‘mani001.**’ notify(arich01)

Profile General Database;
To list Racf database:
RVARY

To switch Racf Database:
RVARY SWITCH

To list all classes
SETR LIST

To list one particular class and its profile names
RLIST classname *

To list a particular profile names
RLIST classname profilename

To define a class to racf i.e change it from Generic to active class
To protect the class by giving universal access none
RDEFINE classname profilename uacc(none)
To permit the class by giving access read
PERMIT profilename CL(classname) id(userid) access(read)

To activate the class and not activating the class
Setr classact ‘classname’
Setr noclassact ‘classname’

To refresh the class after making changes
Setr raclist(classname) refresh

To delete class protection:
Rdelete classname profilename
Mainframe Administration Material                                              

                                               
                 

To revoke user ids after 4 attempts of wrong password and updating the statistics
about it
Setr password(revoke(4))
Setr initstats

To revoke user ids after 60 days of no logon & u updating the statistics about it
Setr password(interval(60))
Setr initstats

To logon even sfter unlimited wrong password entry
Setr password(norevoke)

Catalogs:

A  catalog  is a z/OS data set that describes other data set attributes and records the
location of a data set so that the data set can be retrieved without requiring the user to
specify its volume location

All data sets managed by the storage management subsystem (SMS) must be cataloged in an
ICF catalog.

Types of Catalog:
1. Integrated Catalog Facility catalogs.
2. Vsam Catalogs.
3. OS CVOL (control volume) catalogs.

Advantages.
  
1. ICF catalogs can be updated faster than VSAM catalogs or OS CVOLS.
2. An ICF catalogs can have datasets catalogs on any number of volumes.
3. The catalog information that requires most frequent update is physically located in
VVDS on same volume as datasets allowing faster access.
4. Maintainability is improved by simpler backup and recovery procedures.
Mainframe Administration Material                                              

                                               
                 

The integrated catalog facility (ICF) catalog
An ICF consists of two different components, one basic catalog structure (BCS) and one or
more VSAM volume data sets (VVDS).

The VVDS can be considered an extension of the volume table of contents (VTOC).

Basic catalog structure (BCS)
The basic catalog structure is a  VSAM keysequenced data set  (KSDS). It uses the data set
name as a key to store and retrieve data set information.

.For VSAM data sets, the BCS contains volume, security, ownership, and association
information.

 For nonVSAM data sets,  the BCS contains volume, ownership, and association
information.

For  nonVSAM  data sets that are  not SMSmanaged , all catalog information is contained


within the BCS. For other types of data sets, there is other information available in the
VVDS.

Three types of entries in a VVDS
One VSAM volume control record (VVCR)
Contains control information about BCSs which have
data sets on this volume
First logical record in a VVDS
Multiple VSAM volume records (VVR)
Contain information about the VSAM data sets on
that volume
Contain information about a VSAM data set residing on the volume
Number of VVRs varies according to the type of data set and the options specified for
the data set
 Also included are data set characteristics, SMS data, extent information .There is one VVR
describing the VVDs itself

Multiple nonVSAM volume records (NVR)
Mainframe Administration Material                                              

                                               
                 
Contain information about the nonVSAM data set
on that volume
Contains SMSrelated information
VVDS is a VSAM entrysequenced data set (ESDS)
Data set name: SYS1.VVDS.Vvolser
Can be defined explicitly or implicitly
Catalogs by function
By function, the catalogs (BCSs) can be classified as  master  catalog and  user  catalog

The master catalog
Each system has  one  active master catalog. One master catalog can be shared between
different MVS images. It does not have to reside on the system residence volume (the one
that is IPLed).
The master catalog for a system must contain entries for all user catalogs and their aliases
that the system uses. Also, all SYS1 data sets must be cataloged in the master catalog for
proper system initialization.

Identifying the master catalog for IPL
At IPL, you must indicate the location (volser and data set name) of the master catalog. This
information can be specified in one of two places:
SYS1.NUCLEUS member SYSCATxx (default is SYSCATLG)
 SYS1.PARMLIB/SYSn.IPLPARM member LOADxx. This method is recommended.

Using aliases
Aliases are used to tell catalog management which user catalog your data set is cataloged in.
First, you place a pointer to an user catalog in the master catalog through the IDCAMS
DEFINE UCAT command
To define an alias, use the IDCAMS command DEFINE ALIAS.

List all ALIAS entries in the master catalog:
LISTCAT ALIAS CAT(master.catalog.name)

List a user catalog connector in the master catalog:
LISTCAT ENT(user.catalog.name) ALL
Mainframe Administration Material                                              

                                               
                 
List the catalog’s self describing record:
LISTCAT ENT(user.catalog.name) CAT(user.catalog.name) ALL

Listing a VSAM or nonVSAM data set:
LISTCAT ENT(data.set.name) ALL

Changing the size of BCS or Attribute:
1. LOCK THE CATALOG
               //sysin dd **
                           ALTER ICFCAT.USER.CHEO8 LOCK

              //
2. EXPORT BCS WITH EXPORT COMMAND 
    //SYSIN DD *
       EXPORT ICFCAT.USER.CHE08
       OUTFILE (DD1)
       TEMPORARY
/*

3. DELETE BCS WITH RECOVERY OPTION
   //SYSIN DD *
     DELETE ICFCAT.USER.CHE08
     RECOVER
Y
     USERCATALOG
/*
4. Redefine BCS with desired space and performance attribute

5. IMPORT BCS using import command
Mainframe Administration Material                                              

                                               
                 
    Specify INTOEMPTY ON IMPORT COMMAND and also specifies ALIAS so that
aliases eporting with catalog are redefined.

6. Also ALTER UNLOCK command.

Defining a catalog
You can use the IDCAMS to define and maintain catalogs. Access method services
(IDCAMS).Defining a master catalog or user catalog is basically the same.
//DEFCAT JOB.
//DEFCAT EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
DEFINE USERCATALOG 
(NAME(OTTO.CATALOG.TEST) 
MEGABYTES (15 15) 
VOLUME (VSF6S4) 
ICFCATALOG 
FREESPACE (10 10) 
STRNO (3) ) 
DATA (CONTROLINTERVALSIZE (4096) 
BUFND (4) ) 
INDEX (BUFNI(4) ) 
/*

Defining a BCS with a model
When you define a BCS or VVDS, you can use an existing BCS or VVDS as a model for the
new one. The attributes of the existing data set are copied to the newly defined data set
unless you explicitly specify a different value for an attribute. You can override any of a
model's attributes.

PARMLIB
It is required PDS that contain IBM supplied and installation created members which
contain list of system parameter value.
Purpose of parmlib is provide many initializations parameter in prespecified format in
a single dataset and minimize the need for operator to enter parameter.
Mainframe Administration Material                                              

                                               
                 

• LOADxx[SYS1.IPLPARM]:
• Contain information about 
• • IODF dataset 
• • Master Catalog
• SYS1.NUCLEUS(SYSCATxx)
• • IEASYMxx
• • Concatenated PARMLIB
• SYS1.PARMLIB
• SYS1.CPAC.PARMLIB
• SYS1.IBM.PARMLIB
• OthersSMP/E

IEAFIXxx:
         It contain the name of modules that are fixed in central storage of IPL.
PROGxx [CPAC.PARMLIB]:
Completes the name of one or more parmlib members (PROGxx) that specify the format and
contents of the  APFauthorized library list. PROGxx can specify either a static or dynamic
APF list. A dynamic format allows users to update  the  APF list at any time during normal
processing or at IPL. You can specify as many APFauthorized  libraries as you  need in  a
dynamic  APF list;  there  is no  systemimposed maximum number.  PROGxx also contains
statements  that  control  the use  of installation exits and installation  exit  routines. You can
also use  PROGxx instead of LNKLSTxx to define the  LNKLST concatenation and activate
it at IPL.

Authorized Program Facility data sets
• Dynamic LNKLST
• Dynamic Exits
o Exit chaining

APF FORMAT(DYNAMIC)
LNKLST ADD NAME(S2838) DSN(SYS1.CSSLIB)
EXIT ADD EXITNAME(SYS.IEFACTRT) MODNAME(IEFACTRT)
Mainframe Administration Material                                              

                                               
                 

IFAPRDXX[CPAC.PARMLIB]:
Parameters that  define  a product  enablement policy. Product features that support  product
enablement. The policy list the product and features as well as system environment in which
they able to run.

IGDSMSXX [SYS1.PARMLIB]:
Initialize the Storage Management Subsystem (SMS) and specify the names of the active
control data set (ACDS) and the communications data set (COMMDS).
            Initialization routine to activate sms subsystem (IGDSSIIN).

IKJTSOXX[CPAC.PARMLIB]:
           For TSO/E, specifies authorized commands and authorized programs, programs that
are
authorized when called through the TSO service  facility, commands that may not be issued
in
the background, and defaults for SEND and LISTBC processing.

IEFSSNXX[CPAC.PARMLIB]:
 Parameters that identify what subsystems are to be initialized.
Define static subsystems
• ACF2, RACF, or other security package
• JES2
• DB2
• CICS
• Subsystem recognition characters

NUCLSTXX[SYS1.PARMLIB]:
Specifies  members of SYS1.NUCLEUS  to  be  included  in, or excluded from, the  nucleus
region
at IPLtime.
Eg. EXCLUDE oldmod
       INCLUDE newmod
Mainframe Administration Material                                              

                                               
                 
CLOCKXX[SYS1.PARMLIB]:
Parameters that control operator prompting to set the TOD clock, specifying the difference
between the local time and GMT, and ETR usage.

MSTJCLXX[CPAC.PARMLIB]:
  Contains the master scheduler job control language (JCL) that controls system initialization
and   processing.  You   can   place   the   master   scheduler   jcl   in   MSTJCLxx   module   in
SYS1.LINLKIB

//JOB
//STEP EXEC=IEEMB860,DPRTY=(15,15)
//STCIRDR DD SYSOUT=(A,INTRDR)
//TSOINRDR DD SYSOUT=(A,INTRDR)
//IEFDSI DD DSN=SYS1.PROCLIB,DISP=SHR
                DD DSN=CPAC.PROCLIB,DISP=SHR
                DD DSN=SYS1.IBM.PROCLIB,DISP=SHR
//SYSUADS DD DSNSYS1.UADS,DISP=SHR

IEASYSXX[SYS1.PARMLIB]:
System parameters that are valid responses to the SPECIFY SYSTEM PARAMETERS
message. Multiple system parameter lists are valid. The list is chosen by the operator SYSP
parameter or through the SYSPARM statement of the LOADxx parmlib member.
System Attributes
– CSA, SQA, PAGE data sets
• Pointers to other members
– CONSOLxx
– PROGxx
– LPALSTxx
– OMVS

TSOKEYXX[CPAC.PARMLIB]:
VTIOC parameters that are used by TSO/VTAM time sharing.
Starting TSO/VTAM time sharing activates the terminal control address space(TCAS).
Mainframe Administration Material                                              

                                               
                 
The  function of TCAS is to accept the TSO/VTAM logon request ant to create  an address
space for each TSO user .TCAS build TCAS table and insert a parameter value in it. The
VTAM terminal I/O coordinator (VTIOC) INTERFACE between TSO and VTAM.
EG.   USERMAX=600   DEFAULT=60   MAX   NO   OF   ADDRESS   SPACE   IN   SYSTEM
DEFAULT IS 40.

COFVLFXX[SYS1.IBM.PARMLIB]:
Allows an authorized  program to store named objects in virtual  storage  managed  by VLF
and to retrieve these object  by name on behalf of  users in multiple  address spaces. VLF is
designed   primarily   to   improve   performance   by   retrieving   frequently   used   objects  from
virtual storage rather performing repetitive I/o operations from DASD.
TO START VLF
 START VLF, SUB=MSTR,NN=XX

COFDLFXX[SYS1.IBM.PARMLIB]:
Allows a program to store DLF objects that can be shared by many jobs in virtual storage
managed by Hiperbatch.
TO START DLF
START DLF, SUB=MSTR,NN=XX
[SYS1.IBM.PARMLIB]:
Allows an installation to list the entry point name or LNKLST libraries that can be refreshed
by the  MODIFY LLA, UPDATE=xx command.
TO START LLA
LLA=XX command identifies the CSVLLAxx PARMLIB member to be used to build LLA
directory.  This   command   is    issued   by   the   IBMsupplied   IEACMD00   parmlib   member
during system initialization.

SMFPRMxx[SYS1.IBM.PARMLIB]:
  Parameters that define SMF options.
System measurement
– Tuning
– Capacity planning
– Problem diagnosis
• Exits
• Time out for MVS tasks
Mainframe Administration Material                                              

                                               
                 

LPALSTxx[SYS.LPALIB]:
List of data sets to be concatenated to SYS1.LPALIB from which the system builds the
pageable LPA (PLPA).

CONSOLxx[SYS1.PARMLIB]:
Parameters to define an installations console configuration, initialization values for
communications tasks, the  default  routing  codes for  all  WTO/WTOR messages that  have
none   assigned,   and   the   characteristics   of   the   hardcopy   message   set.   CONSOLxx   also
contains parameters that  define  the  hardcopy  medium and designate  the  alternate  console
group for hardcopy recovery.

LNKLSTxx[SYS1.LINKLIB]:
List of data sets to be concatenated to form the LNKLST concatenation. 

PFKTABxx[SYS1.PARMLIB]:
Parameters contain the definitions for program function key tables (PFK tables).

COMMANDxx[CPAC.PARMLIB]:
Commands to be issued by the control program immediately after initialization. JES
commands may not be included.
 Eg.
                    COM=’SET MPF=00’
             COM=’S VLF, SUB=MSTR’
                    COM=’S DLF, SUB=MSTR’
                    COM=’S VTAM’
                    COM=’S SYSLOGD’

BPXPRMxx[CPAC.PARMLIB]:
• UNIX System Services    • No member starts OMVS in minimal mode
• Most parameters can be changed dynamically
• Others require IPL    • Mount HFS data sets at start up • Specify initialization scrip

DB2 :
Mainframe Administration Material                                              

                                               
                 

It is collection of data. It is mainly used to manage large volume of data.

DB2 has five address space:
1) DSNMSTR(System Services) : Support system operation communication &
shutdown.
2) DSNDBM01(Database Services) : Support definition, updation and retrieved of DB2
data.
3) IRLMPROC(Locking Services) : Internal resource lock manager used for locking
during retrival of concurrent data.
4)  DSNDIST(Distributed DBservice) – Take care of remote access database located at
different place.
5) DSNSPAS : It provides an isolated environment in which to execute stored
procedure.

DB2 catalog 
It contain information about all of the DB2 objects (table, indexes, views, tablespace,
database and storage).

DB2 Directory:
  A directory consists of set of db2 table stored in 5 tablespace namely
1) Skelton Package Tablespace 2) Skelton Package Tablespace 3) System log range
Tablespace 4) System utilities 5) Database Descriptor.

PCTFREE: Percentage of each page to be left free 

FREEPAGE: Number of pages to be loaded with data between each free page

BSDS: 
It contains the all active and archieve log datasets. During installation of db2, two
BSDS created and kept in different volume.

Active Log Dataset:
 It records all the happening in db2.
Mainframe Administration Material                                              

                                               
                 
Archieve Log dataset:
            Copies the content of active log to dasd.

Bufferpool:
           It is an virtual storage area. If the data is present in bufferpool we can retrieve it
fastly.

Types:
BP0, BP1, BP2, BP32

Storage Group:
It is a set of volumes on dasd these volumes hold dataset.

Database:
A set of db2 object i.e. table, index, tablespace and view.
Three types of Tablespace:

Simple Tablespace:
A page contain info about more than one table.

Segmented Tablespace: 
      Can contain one or more tables .Tablespace is divided into segments of 4 to 64
pages  in  increments  of  4   pages.Each  segment  is  dedicated  to  single   table.    A  table   can
occupy multiple segments

Partitioned Tablespace:
               Can contain one tableTablespace is divided into parts and each part is put in a separate
VSAM dataset.

Referential Integrity: 
Mechanism that ensures that data integrity between tables related by primary key and
foreign key.

Primary key: 
It should be an unique key, using this we can retrieve records of a table.
Mainframe Administration Material                                              

                                               
                 

Foreign key : 
A primary key of parent table should be normal key of child table.

COMMIT: 
  Signal to db2 subsystem that the transaction has completed successfully and
any changes to the database can be completed.

SPUFI: 
This support online execution of sql statement from a tso terminal.

Mode of lock:
S (SHARE) :The lock owner and any concurrent processes can read but cannot change the
locked page.
U (UPDATE) : The lock owner can read but not change the locked page
X (EXCLUSIVE) : The lock owner can read or change the locked page.

Isolation levels:
CSreleases the lock on page after use
RRretains all lock acquired till end of transactions

Migrate DB2 from one release to other version.
DUMPCAT utility.

Thread:
It is a connection between one subsystem to another subsystem.

Dynamic SQL:
During execution of sql statement we can change the value.

Static SQL:
During execution of sql statement we can not change the value.

Plan
Mainframe Administration Material                                              

                                               
                 
It is db2 object (produced during the bind process) that associates one or more
database request modules with a plan name.

DB2 bind
It is a process that build a access path to DB2 tables
PACKAGES:
They contain executable code for SQL statements for one DBRM
Cursor
         A Cursor is a named structure used to make a set of rows available to a program.
Select statement
  A SELECT statement is an SQL statement that retrieves data from a TABLE or
VIEW.

EXPLAIN:
EXPLAIN is used to display the access path as determined by the optimizer for a
SQL statement

COPY PENDING 
A state in which, an image copy on a table needs to be taken,  In this status, the table
is  available   only   for   queries.     You   cannot   update   this   table.     To   remove   the   COPY
PENDING status, you take an image copy or use REPAIR utility.

CHECK PENDING :
When a table is LOADed with ENFORCE NO option, then the table is left in
CHECK PENDING status.  It means that the LOAD utility did not perform constraint
checking

DB2 online utility:
Load: It load the set of data to the table.

Copy: it is used to take backup of the tablespace.

Mergecopy: It merges the full copy and incremental copy.

Reorg:
Mainframe Administration Material                                              

                                               
                 
It is used to release the freespace of the tablespace.

Modify: Delete record of specific age specified in the control card.

Quiesce: Using RBA, we can recover the table which is lost in tablespace.

Runstat: It is used to generate report for the tablespace.

Unload: Unload bulk of records from table.

CICS:

CICS: 
Customer information control system. It is used to convert batch program to online
processing.

Map: 
Representation of one screen format is called Map(Screen panel)
Types of Map:
Physical Map: Map is used for creation of cics region.

Symbolic Map: Map is used by CICS application program

Transient Data Queue                                Temporary Storage Queue
1) Data can be read sequentially               1) Data can be read randomly
2)While fetching the data it will               2)While fetching the data it will
affect the all data.                                       affect the only the particular data.  

CICS resource entries creation:
It can be create by two ways: 
1) CEDA – Online Program
2) DFHCSDUP utility – Batch Program 

We need to create : 
Mainframe Administration Material                                              

                                               
                 
 1) Program id (8 character)
 2) Transaction id(4 character)
 3) Map id(7 character) 
 4) File id(8 character)                  
 5) DB2entry(8 character) 
 6) Queue id(4 character).

Forcing Looping Task:
In CEMT I task option panel, we have option Htype, we can identify if the job is going in
loop or not.
ICWAIT or ZCIOWAIT – job is executed waiting for user input and output.
TSAUX – Job is going in loop, we can forcibly delete the job with option F.

VSAM : Virtual storage Access Method.

VSAM acts as interface between Operating System and Application Program.
It acts as database for application Program.

Entry Sequence Data Sets (ESDS)
An ESDS is a sequential file, in which records are retrieved in the order in which they were
written to the data set and additions are always made at the end of the  file. Record can be
identified by a relative byte address or RBA Records in an ESDS may be of variable length.

Relative Record Data Sets (RRDS)
RRDS  may  be  inserted, retrieved,  updated,  and  deleted  both  sequentially  and  randomly.
RRDS can be identified by Relative Record Number. RRDS has only data component. 
Key Sequenced Data Sets (KSDS)
A KSDS can be processed sequentially or randomly. A KSDS consists of two components, a
data component and an index component. The data component contains the record and the
index component contains the indexes necessary to access the records. The index component
of a KSDS has two parts: a  sequence set and an index set.
VSAM Clusters
In  VSAM  terms,  a  file  is often  called a  cluster.  A cluster  is a  set  of  catalog entries that
represents a file catalog.

It consists of two components:
Mainframe Administration Material                                              

                                               
                 

a data component, which represents the actual records of a file
an index component which represents the indexes for KSDS
Control Interval
The  fundamental building  block  of every component  of a  VSAM  data  set  is the  Control
Interval (CI). It is the unit of data VSAM transfers between virtual and disk storage. The size
of a CI must be between 512 and 32,768 bytes
CI contains Records, Free space, Control Interval Definition Field (CIDF),Record Definition
field (RDF)

RDF and CIDF
RDF
3 bytes long
Indicates length of records

CIDF
4 bytes long
One per CI
Indicates free space

Control Area (CA)
CIs are grouped into CA
Can have more than one CA in a VSAM data set
Smallest is a TRACK, and the largest is a CYLINDER
JOB CONTROL LANGUAGE

Job Control Language (JCL) 
• is a control language 
• used to identify a job to an operating system
• and to describe the job’s requirements

The three main types of JCL statements are:
JOB  It marks the beginning of a job and identifies the job name
EXEC  It marks the beginning of a job step and specifies the name  of the program to  be
executed
DD  It describes data sets to be used within individual steps
   
Syntax of JOB Statement:
Mainframe Administration Material                                              

                                               
                 

There
are two types of parameters:
Positional parameters
Keyword parameters

Positional parameters:
             Positional parameters are parameters that are characterized by their location.

The two positional parameters for a JOB statement are:
Job accounting information:
• Used to bill on any Job that run on mainframe
• Identifies account no which will be billed for CPU time
Programmer name:
• Identifies the author’s name 
Keyword Parameters :

Consisting of a keyword and equal sign and variable information.
Mainframe Administration Material                                              

                                               
                 
CLASS –      Some jobs can be short running, some jobs may take more time other
  may   use   having   resources.   CLASS   keyword   parameter   is   used   to   tell   to   OS
about the nature of job we are submitting.
           Syntax        >  CLASS=jobclass

 PRTY   It is related to CLASS parameter. It assigns priority to jobs which belong to the
same class. Higher number takes precedence over the job with lower number. A job with
priority of 12 will run before a job with priority 5.

Syntax        >  PRTY=priority

MSGCLASS -   The  MSGCLASS   parameter  determines  the  output device  to    which


system  messages  and  JCL   messages   are   written.  (or)   MSGCLASS   specifies   the  job
scheduler message output class.
               Syntax        >  MSGCLASS=outputclassname

       is used to tell JCL, which messages to be printed in the device specified
MSGLEVEL
in MSGCLASS parameter.

              Syntax        >  MSGLEVEL=(statements,messages)

STATEMENT
 0    Related to job statements only printed
 1    jcl will be printed
 (which includes all cataloged/symbolic parameters)
 2    only the input jcl statements being printed

MESSAGES
 0    Allocation/termination messages will be printed
 If job terminates abnormally
 1    Allocation/termination messages will be printed
 regardless of whether the job terminates normally or
 abnormally.

 TYPRUN  The TYPRUN parameter is used to specify whether job is to    be held until
further notice or for syntax checking.

           Syntax >  TYPRUN=HOLD    Job held until further notice
                            TYPRUN=SCAN    Check JCL for syntax checking
Mainframe Administration Material                                              

                                               
                 

  CHAPTER2:    Abend code :

S013: Member not found

S222 Abend : The job was cancelled because it violated some restriction. No dump was requested. 

S322 Abend :The job used more CPU time than it should have. Either the estimate is wrong or the program is in an
uncontrollable loop. 

S413 Abend :A volume was needed that could not be mounted. 

S422 Abend :Too many job steps. 

S522 Abend :Job was waiting too long. 

S722 Abend :Too many lines of print. 

SB37 Abend : Insufficient  secondary space. 

SD37 Abend :Insufficient primary space. 

SE37 Abend :Insufficient disk space. the maximum number of extents would be exceeded. For instance, when
exceeding 16 extents of a PDS. An E37 on tape datasets is most often caused when the number of requested volumes is
exceeded. The default is 5, therefore a request for the sixth volume will fail with a E37. 

You might also like