IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

doubt regarding JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
dileep.james
Warnings : 1

New User


Joined: 22 Apr 2005
Posts: 4
Location: mumbai

PostPosted: Fri Jun 03, 2005 4:55 pm
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
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Fri Jun 03, 2005 5:08 pm
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: 252
Location: India

PostPosted: Fri Jun 03, 2005 5:12 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
No new posts doubt when executing a file when logg... TSO/ISPF 2
No new posts Doubt in MFS IMS DB/DC 2
No new posts Doubt on GETMAIN, FREEMAIN behaviour CICS 3
No new posts Doubt in using command code O IMS DB/DC 4
Search our Forums:

Back to Top