Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ 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 & VSAM
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    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

kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
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: 252
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts Doubt on GETMAIN, FREEMAIN behaviour Arunkumar Chandrasekaran CICS 3 Sun Aug 30, 2015 9:22 pm
No new posts Doubt in using command code O Appu IMS DB/DC 4 Tue Jan 13, 2015 3:14 pm
No new posts Doubt in using command code D and N t... Appu IMS DB/DC 7 Mon Dec 29, 2014 5:52 pm
This topic is locked: you cannot edit posts or make replies. ISREDIT macro command doubt sakrat TSO/ISPF 60 Wed Feb 05, 2014 6:47 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us