Professional Documents
Culture Documents
JCL
JCL
(LE,GE,NE,GT,EQ,LT)
1)cond = even this will execute subsequent steps even though the previous steps abended
2)Cond = ONLY this will execute subsequent steps only the previous steps abended
3)cond= even,only ---> this we can code either in step or job card .. if we code this in jobccard it means
this will applicable for all the steps in that job
in other words if we code condition codes in step it will applicable for that particular step
COND=(12,GE,STEP01)
COND=ONLY
COND=EVEN
7)STEPNAME.DDNAME DD DSN=FILE1,DISP=SHR
8)STEPNAME.DDNAME DD DSN=FILE2,DISP=(NEW,CATLG,DELETE),SPACE=(CYCL,
(10,10,RLSE),DCB=*.STEP01.DD1
9)CLASS PARAMETER defines of a sceduling job.based on the priority which will ben given by scheduler
or operator the job will excute. why we will give this
generally many jobs will run in the same class based on the priority the job will give in other words if
too many jobs are running in same class the jobs may goes to queuing in such scenarios
10) MSGCLASS PARAMETER used to describes where the JCL MESSAGES ROUTED .
means which messages need to be printed in sysout .. like job statement or procedure related
statements or job control rleated statements
11)msglevl(1,1)
12) common parameters we can code in both job and step are region time,space,cond
13) common abends u faced, s222 infinite looping due to if you wont get enough memory to run the job
14) S3222 you will get this bcoz of time out error occured due to provided time condition in job r step
,SD37 Primary is full...but secondary not specified...Mostly we wont get this abend. bcoz we will
specify pri and sec without fail when creating a DS.
// VOL=(,,,199)
REFORMATTED LINES
17) GDG
gdg's are group of datasets related to eah other by a common name,common name is referred is a gdg
base and eah datset associated with the base is called gdg version
g from 0 to 9999
v 0 to 99
define gdg -
(name(user.ag15413.test.lib)-
empty -
noscratch-
limit(20))-
limit 20 ... after creating 20, 19 will be uncatlogged and 20 will get create when you give limit 20 and
empty,noscratch
limit 20 --- after creating 20(limit 20 reached) the 1st generation will be uncatloged and from 2to 20 will
be remained
noempty - uncatlog only the oldest geneartions in gdg when the limit is reached
empty - uncatlog all the geneartions when the limit is reached
//SYSUT1 DD DSN=MYDATA.URMI.JOBS(INPUTJOB),DISP=SHR
//SYSUT2 DD SYSOUT=(*,INTRDR)
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
EDIT TYPE=INCLUDE,STEPNAME=(STEP3,STEP7)
21) we'll notify thru notify parameter and will write down SAS step in jcl mention email step(dls) in jcl