View previous topic :: View next topic
|
Author |
Message |
dileep.james Warnings : 1 New User
Joined: 22 Apr 2005 Posts: 4 Location: mumbai
|
|
|
|
Hi everyone
I have doubts regading JCL
i have a program 'A' which calls another program 'B'
when i write jcl for the execution of 'A', should i refer to 'B' as linked to the prog if yes how should i specify it???????
if possible give an example JCL for this... |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
In JCL you have to mention only parent program.Where as program B requires no entry in JCL, except Load lib.
When from program A you are calling program B then if Program B is statically linked with Program A then only one load module will be created hence in JCL you need to give only one load lib, which is for prog A.
Where as if it is dynamically linked and if it present in same load lib where progarm A is present then you don't need to mention any other laod lib.Where as if it present some where else then you need to give the load module only.
Hope you got the clear idea now. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
Hope this piece of sample code will give you some more clear idea
Code: |
//MYJOB1 JOB (T,B0,SCM),'KANAK',CLASS=I,MSGCLASS=J,
// REGION=4096K
//JOBLIB DD DSN=<PRORGAM A PGM LIB>,DISP=(SHR,PASS)
// DD DSN=<PROGRAM B PGM LIB>,DISP=(SHR,PASS) --> ONLY REQUIRED IF DYNAMIC LINK
//*======================================================
//PS010 EXEC PGM=MYPROG
//*======================================================
//SYSOUT DD SYSOUT=*
//* |
|
|
Back to top |
|
|
|