What is JOBLIB ?
Answers were Sorted based on User's Feedback
Answer / shakila vinayagam
It is a DD (Data definition) statement, and it specifies
where
the program (which is specified in EXEC statement)
exists.
It is applicable to all job steps in that job. It
cannot be used
in cataloged procedures.
Syntax -> //JOBLIB DD DSN=dataset
EXAMPLE JCL ->
//MYJOB JOB (E343),'KRISHNA'
//JOBLIB DD
DSN=SE.TEST.LOADLIB,DISP=SHR <--- Attention
//STEP1 EXEC PGM=COBPROG
Immediately following the JOB statement is
the JOBLIB DD
statement. This is used to specify the
location of the
program that is to be executed.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / tina
JOBLIB specifies the list of loadlibraries which include the
programs to be executed.
You can have any no. of LOADLIBS.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / pankaj thakur
Joblib specifies the location of program for all the steps
used within the JCL.In a single Job there can be 255 steps
coded at a single time.
If in a particular step we use the steplib statement then
that steplib statement overrides the joblib statement.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / kaladhar
IT SPECIFIES THE LOADLIB IN WHICH THE PROGRAM LOADMODULES
OF ALL THE STEPS ARE SEARCHED.
JOBLIB MUST IMMEDIATELY FOLLOWS JOB STATEMENT.
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / selvarani ajeeth
Shakila ,I just need to add some points,
We can gie any number of loads in the joblib.
The precedence will be taken from the top to bottom.If the
program load is not found in the first PDS ,it will be
taken from the next.STEPLIB overrides JOBLIB statement.
| Is This Answer Correct ? | 2 Yes | 4 No |
what is the default region size if I dont specify region parametre in my job card ( I know that if I specify region=0k or 0M, then the job will occupy all he available resources at the time of job execution), but I want to know the defult value for "region" paramatre.
how to write a jcl prog to copy alternate recs from ps1 to another ps2,suppose ps1 having 10 recs?
What is the differentiation between TRK,cyl, and Bytes... how they can be connected??
which parameter is used to check the syntax of a jcl without executing it?
What is the syntax of JCL statement?
Can we call instream to catalog and catalog to instream?
I have many files which i am receiving from client everyday. I have one step for every file to check for empty or not. Here client gives 30 files i need to check for every file for empty or not and i need to perform 30 steps. Can I do it in single step. Dynamically i need to change the File name in my step.
Is CPU time (TIME parameter) assigned to a JOB and JOBSTEP BOTH, by default ?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
i have 10 steps in jcl program but i have to exicute only 2,4,6,8th and 10th ?how it's possible?
How to execute step2,step1, step3 if step1,2,3 are in order
How can you trap abends in the JCL?