Syntax for JCLLIB & JOBLIB???



Syntax for JCLLIB & JOBLIB???..

Answer / suersh ramaiyan

JCLLIB: The PDS, where all the JCL (procedures) are present.
JOBLIB: The PDS, which contains the load modules of the programs.

In a JCL, if we are including any procedures, the system should know where it needs to be searched. That's why we are mentioning JCLLIB.. here is the syntax..

//DDNAME JCLLIB ORDER=(Emer.proclib,prod.proclib)
Where, DDNAME can be anything within 8 chars, JCLLIB & ORDER are the keywords and there is no DISP is needed.

When a program is try to run the system will execute the macro to load the executable code(load module of the program) from the load library to main memory. So we should mention where it should find the same. here is the syntax.....

//JOBLIB DD DSN=emer.loadlib,DISP=SHR
// DD DSN=prod.loadlib,DISP=SHR
// DD DSN=test.loadlib,DISP=SHR

Where, other than the library name, all others are keyworkds.

Please include if I missed anything..

Is This Answer Correct ?    14 Yes 1 No

Post New Answer

More COBOL Interview Questions

What is the difference between perform … with test after and perform … with test before?

0 Answers  


What do you feel makes a good program?

2 Answers  


What is the Purpose of POINTER Phrase in STRING command in COBOL?

0 Answers   Winsol Solutions,


what is meaning by design document? who can repared for this?

5 Answers   TCS,


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1 Answers  






Can you REWRITE a record in an ESDS file? Can you DELETE a record from it?

6 Answers   ABC, IBM, Mphasis, Wipro,


ZEROES and SPACES are _______ constants (a) Figurative (b) Numeric (c) Non-numeric (d) Alphabete

4 Answers   TCS,


I have the requirement to compare the two files and pick up the matching records. File 1. file2 23 32 32 13 34 15 35 36 36 35 43 Get the matching records from this 2 files to out file. how you will do this in cobol program?

15 Answers   ADP, Broadridge, CTS, HSBC, L&T, RBS, TCS,


How to fetch 1000 error records from VSAM file(Eg: 1000000 records present) while getting SOC7 abend ?

0 Answers  


What is file status 39 ?

10 Answers   JPMorgan Chase,


What is the usage of comp fields in cobol?

0 Answers  


What is inspect in cobol ?

0 Answers   Infosys,


Categories