Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
doubt regarding JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
dileep.james
Warnings : 1

New User


Joined: 22 Apr 2005
Posts: 4
Location: mumbai

PostPosted: Fri Jun 03, 2005 4:55 pm    Post subject: doubt regarding JCL
Reply with quote

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
View user's profile Send private message
References
kanak

Moderator


Joined: 12 Mar 2005
Posts: 259
Location: India

PostPosted: Fri Jun 03, 2005 5:08 pm    Post subject:
Reply with quote

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
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 259
Location: India

PostPosted: Fri Jun 03, 2005 5:12 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1