Syntax for JCLLIB & JOBLIB???

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How do u write test cases?

1717


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

897


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3830


Write a cobol program making use of the redefine clause.

826


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?

7073






Can we redefine the field of x(200) to less than 200?

955


What is link edit in cobol?

858


Explain how you can characterize tables in cobol?

730


How to print 10 to 1 if the input have only 10 digit number?

919


i need a small 3d program using inline and outline.

1748


What are the cobol coding sheets?

745


What are the access modes of START statement?

813


What is the difference between comp and comp-3 usage?

775


How do we get current date from system with century in COBOL?

928


What rules are followed by the search verb.

719