You are on page 1of 3

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

4) IMB300IR JOB 00124,'ERRORCODES',CLASS=A,MSGCLASS=A, REGION=0,TIME=1440,

COND=(12,GE,STEP01)

5) IMB300IR JOB 00124,'ERRORCODES',CLASS=A,MSGCLASS=A, REGION=0,TIME=1440,

COND=ONLY

6) IMB300IR JOB 00124,'ERRORCODES',CLASS=A,MSGCLASS=A, REGION=0,TIME=1440,

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

we will request operator to clear the queue or increase the prioority

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

15) space abends i faced


SB37 will try to increase the primary and secondary

,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.

,SE37 //* VOL=(,,,59)

// VOL=(,,,199)

16) 3.13 NUMBER OF LINE MATCHES

REFORMATTED LINES

NEW FILE LINE INSERTIONS

OLD FILE LINE DELETIONS

NEW FILE LINES PROCESSED

OLD FILE LINES PROCESSED

select options file,line,word,byte

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

scratch - Physically delete the dataset which is uncatloged

noscratch - dont physically delete the dataset (generation) which is uncatloged

18) //IF1 IF (STEP2.RC = 0 & STEP2.RC <> 0) THEN

19) //STEP001 EXEC PGM=IEBEDIT

//SYSUT1 DD DSN=MYDATA.URMI.JOBS(INPUTJOB),DISP=SHR

//SYSUT2 DD SYSOUT=(*,INTRDR)

//SYSPRINT DD SYSOUT=*

//SYSIN DD *

EDIT TYPE=INCLUDE,STEPNAME=(STEP3,STEP7)

20) for 300 records

SORT FIELDS = COPY

OUTFIL FILES = 01,ENDREC=100 //*assuming input file has 300 records.

OUTFIL FILES = 02, STARTREC = 101, ENDREC = 200

OUTFIL FILES = 03, STARTREC = 201

21) we'll notify thru notify parameter and will write down SAS step in jcl mention email step(dls) in jcl

22) SORT FIELDS=COPY

OUTFIL FNAMES = SORTOF01, FTOV, VLTRIM = C'*' //*removes trailing '*'

OUTFIL FNAMES = SORTOF02, FTOV, VLTRIM = X'40'//*removes trailing space

23)IEBUPDTE is used to update PDS.

You might also like