JCL TUTORIAL - IBM JCL MAINFRAME JCL INTRODUCTION BASI...
[Link]
RAMESH KRISHNA REDDY
Online Tutorials | PREV | TOP | NEXT DRONA SERIES
JCL STUDY MATERIAL
CHAPTER - 2
Study Masters in Germany
[Link] Zero/Low tuition fee. Call GECS for professional guidance Ph: 4080 2222
As we discussed in Chapter-1 , Three important input operations are 1. JOB 2. EXEC 3. DD
1 of 4
06-Mar-13 9:25 AM
JCL TUTORIAL - IBM JCL MAINFRAME JCL INTRODUCTION BASI...
[Link]
Now let us look at JOB statement
Syntax of JOB Statement
EXPLANATION to keyword parameters CLASS PRTY MSGCLASS MSGLEVEL TYPRUN NOTIFY
1. CLASS - Some jobs can be short running, some jobs may take more time other may use havy resources. CLASS keyword parameter is used to tell to OS about the nature of job we are submitting. Syntax Valid values -> -> CLASS=jobclass Any alpha betical character between A - Z numbers between 0 - 9 //MYJOB JOB (3345Y),'KRISHNA REDDY',CLASS=K or
Example JCL
->
2. 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. -> -> -> PRTY=priority Any value between 0 to 15 //MYJOB JOB (345Y),'KRISHNA REDDY',CLASS=8,PRTY=6
Syntax Valid values Example JCL
3. MSGCLASS - The MSGCLASS parameter determines the output device to which system messages and JCL messages are written Syntax Valid values -> -> MSGCLASS=output-class-name Any alpha betical character between A - Z number between 0 - 9 or
Example JCL
->
//MYJOB JOB (456Y),'KRISHNA REDDY',CLASS=7,PRTY=5,MSGCLASS=A
2 of 4
06-Mar-13 9:25 AM
JCL TUTORIAL - IBM JCL MAINFRAME JCL INTRODUCTION BASI...
[Link]
4. MSGLEVEL - is used to tell JCL, which messages to be printed in the device specified in MSGCLASS parameter Syntax Valid values -> -> MSGLEVEL=(statements,messages) Statements may be the number 0,1,2 and messages can be 0 or 1 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. Example JCL -> //MYJOB JOB (3456Y),'SR',CLASS=8,MSGCLASS=S,MSGLEVEL=(1,1)
5. 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 or TYPRUN=SCAN - Check Jcl for syntax checking
Example JCL
->
//MYJOB JOB (3456Y),'KRISHNA',CLASS=8,PRTY=9,TYPRUN=HOLD
6. NOTIFY - The NOTIFY parameter is used to direct the system, where it has to send the success/failure message after completing the job. Syntax -> NOTIFY=userid/&SYSUID
EXAMPLE JCL
->
//MYJOB JOB (3456Y),'KRISHNA REDDY',CLASS=8,NOTIFY=&SYSUID &SYSUID - the userid from which user it has been submited //MYJOB JOB (34W5),'KRISHNA REDDY',CLASS=8,NOTIFY=ERT54 It send the sucess/failture message to ERT54 userid
NEXT CHAPTER TOPIC : JOBLIB / STEPLIB
3 of 4
06-Mar-13 9:25 AM
JCL TUTORIAL - IBM JCL MAINFRAME JCL INTRODUCTION BASI...
[Link]
Upload Your CV For Jobs
[Link] The Worlds No.1 Speedy Job Portal. Apply to Jobs Faster. Upload Now!
Visit jcl books section in this site for good books
Home | Donations | Online Tutorials | Books | Entertainment | Contactme | privacy | sql tutorial | jcl interview questions | JCL Tutorial | JCL Tutorial - chapter1 | JCL Tutorial - chapter2 | JCL Tutorial - chapter3 | JCL Tutorial - chapter4 | JCL Tutorial - chapter5 | JCL Tutorial - chapter6 | JCL Tutorial - chapter7 | JCL Tutorial chapter8 | JCL Tutorial - chapter9 | JCL Tutorial - chapter10 | JCL Tutorial - chapter11
4 of 4
06-Mar-13 9:25 AM