Can a job have only steplib and no joblib ?

Answers were Sorted based on User's Feedback



Can a job have only steplib and no joblib ?..

Answer / saroja kolli

Yes. We can have only steplib without a joblib.

But in such case, if the Job contains several steps then in
everystep of the job STEPLIB should be mentioned.

STEPLIB refers to the step in which it is mentioned and the
JOBLIB refers to all the steps in the job.

When STEPLIB and the JOBLIB both are mentioned then STEPLIb
overrides JOBLIB.

Is This Answer Correct ?    13 Yes 0 No

Can a job have only steplib and no joblib ?..

Answer / manikandan.d

yes job have oly steplib but its effective oly for
perticular step...steplib placed immediate after the exec
step statement

ex:

//step1 exec pgm=pgm1
//steplib dd dsn =ksab.manid.loadlib,disp=shr

let me know if any new answer

Is This Answer Correct ?    4 Yes 0 No

Can a job have only steplib and no joblib ?..

Answer / runa

yes

Is This Answer Correct ?    3 Yes 0 No

Can a job have only steplib and no joblib ?..

Answer / kalaimani

exactly previous answers are correct. and also if no
steplib is providied for one particular jobstep, then it
wil take from joblib. it is not mandatory to give steplib.

Is This Answer Correct ?    2 Yes 0 No

Can a job have only steplib and no joblib ?..

Answer / pankaj.g

Hi Manikandan.d,

Your answer is correct but we can put Steplib anywhere in
the step. It is not necessary to put the steplib immediate
after Exec step.

Correct me if I am wrong?

Is This Answer Correct ?    2 Yes 0 No

Can a job have only steplib and no joblib ?..

Answer / deepak thamarasseri

Yes,we can code Steplib and Joblib in the same code.If we
are coding both,STEPLIB overrides the JOBLIB statement.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More JCL Interview Questions

HOw to submit a job from other user id.? for exp some other job name like "t4622sdx".now i want to submit that job from my user id?(we don't know that location at all Just we know job name)

1 Answers   MSN Pharma, UST,


Can we Execute a job without specifying Job Name in the Job Card?

2 Answers  


Differentiate between the joblib and the steplib statements?

0 Answers  


i am trying to copy a PS file into VSAM file in step2 by using PGM=IDCAMS,COND=(0,LT) and the pS file is getting sorted in the step1. I got the return code 00 for step1 but step2 got flushed. can u please help on this. Below is My JCL. SEPP050 EXEC PGM=SORT,REGION=6144K SYSIN DD DSN=SYSCMN.PROD.CCLIB (F5910BNN), DISP=SHR SYSOUT DD SYSOUT=* SYSUDUMP DD SYSOUT=A SORTIN DD DSN=Z1225BT.F5910EPP.HISOUT, DISP=SHR SORTOUT DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT5, DISP= (NEW,CATLG,DELETE),UNIT=DELQ, SPACE=(CYL, (500,500),RLSE), DCB= (RECFM=FB,LRECL=1606,BLKSIZE=16060,BUFNO=15) SORTWK01 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK02 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK03 DD UNIT=SYSDA,SPACE=(CYL, (1)) SORTWK04 DD UNIT=SYSDA,SPACE=(CYL, (1)) SYSIN1 DD UNIT=VIO,SPACE= (80,1) * SEPP060 EXEC PGM=IDCAMS,COND= (0,LT) SYSPRINT DD SYSOUT=* SYSOUT DD SYSOUT=* SYSLIST DD SYSOUT=* *** DD01 DD DSN=Z1225BT.F5910EPP.HISOUT.SORTOUT, // DISP=SHR //*** //DD01O DD DSN=Z1225BT.F5910PHS, // DISP=SHR, // AMP=(AMORG,'BUFND=12,BUFNI=5') //SYSIN DD DSN=SYSCMN.PROD.CCLIB(F5910BBB), // DISP=SHR Output RC for the two steps: SDCBPJ05 SEPP050 00 236 .00 .00 .0 SDCBPJ05 SEPP060 FLUSH 0 .00 .00 .0

3 Answers  


I have 10 steps, I want to run STEP1 TO STEP4 then I should not run STEP5 and STEP6. Aganin I want to execute from STEP7 to STEP10. ONLY using CONDITION CODES how can we execute this process? 1. Where we can set cond codes for STEP5 and STEP6? 2. How can we execute remaining steps from STEP7 to STEP10?

2 Answers  






A job has 150 steps i want to execute only 57th step

3 Answers   Cognizant,


how can i use the parameters decalred in main pgm in sub pgm

2 Answers   TCS,


What are s0c1, s0c4, s0c5, s0c7 and socb?

0 Answers  


i want to see the jobs in skeleton queue in diff region. (eg. 7 regions are running means , i want to see all the jobs in 7 regions which are in skel queue using 1 command)

1 Answers  


How to use COND Parameter in jcl

4 Answers   NIIT, Wipro,


How to override loadlib?

0 Answers   Fiserv,


What are the jcl procedures?

0 Answers  


Categories