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

Main program and Sub program wrt DD statement


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Sat Jan 14, 2006 5:50 pm
Reply with quote

Hi Folks,

I am posting this question on behalf of my friend.

Please answer this question.

I have a main program in a pds i.e a.b.c and sub program is in a.b.d.
The question is how would be the format for the DD statement would be same for main program or subprogram.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Sat Jan 14, 2006 6:29 pm
Reply with quote

You have to put both libraries in the STEPLIB DD, unless the are in your LINKLIB.

O.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jan 14, 2006 11:18 pm
Reply with quote

And remember that the load modules may be linked into the same loadlib in spite of the fact that the source resides in different sourcelibs.

If you (or your friend) still have them, check the compile jobs' JCL and/or SYSOUT.
Back to top
View user's profile Send private message
sbalajibe

New User


Joined: 15 Aug 2005
Posts: 62

PostPosted: Mon Jan 16, 2006 2:04 pm
Reply with quote

Hi All,
The program source can be at any place . but if the compiled load module is at diffrent pds then u have to give both the pds in either steplib or in joblib

thanks
balaji
Back to top
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Mon Jan 16, 2006 5:52 pm
Reply with quote

Hi All,

Thanks for your reply.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Tue Jan 17, 2006 4:44 am
Reply with quote

Iknow,

Why don't you tell us how your problem was resolved.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
No new posts EZT program to build a flat file with... All Other Mainframe Topics 9
Search our Forums:

Back to Top