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

here is my requirement A1 is alphanumeric with value 'A1B2C3D4' as defined below 05 A1 PIC X(8) VALUE IS 'A1B2C3D4' but i need to have A2,A3 as ABCD & 1234 repectively...... A2 = ABCD A3 = 1234 Can you please explain me what are the different ways to do it?

2 Answers   IBM,


u have passed sme charecters thru parm parameter in jcl. how do u code in cobol to recieve the values u gave in parm ?

2 Answers   IBM,


What are the various section in data division and briefly explain them.

0 Answers  


What does MAXCC 3 means? It is used in one my codes.

2 Answers   Wipro,


consider the following PROCEDURE DIVISION entry OPEN EXTEND IN-FILE identify the correct statement a.organization of IN-FILE is sequential and records can be added in the beginning b.organization of IN-FILE is sequential and records can be added in the end c.organization of IN-FILE is indexed and records can be added in the beginning d.organization of IN-FILE is indexed and records can be added in the end

3 Answers   TCS,






What kind of error is trapped by on size error option?

0 Answers  


What is the meaning of 'TALLING' verb in cobol?

5 Answers  


maximum of how many screens we can open in emulator

2 Answers  


in cobol main pgm is calling sub pgm but sub pgm does not exists , what abend i get if submit the job?

2 Answers   HSBC,


Mention the guidelines to write a structured cobol program?

0 Answers  


what is the basic concept of mainframe? what knowledge is needed for learn this mainframe?

4 Answers   CSE, TCS, Wipro,


I got user abend U4038 while compiling my runjcl.. can anyone help me?

10 Answers   CGI,


Categories