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
 

 

Main program and Sub program wrt DD statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
iknow

Active User


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

PostPosted: Sat Jan 14, 2006 5:50 pm    Post subject: Main program and Sub program wrt DD statement
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: 2360
Location: Israel

PostPosted: Sat Jan 14, 2006 6:29 pm    Post subject:
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    Post subject:
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    Post subject:
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: 413
Location: Colarado, US

PostPosted: Mon Jan 16, 2006 5:52 pm    Post subject: Re: Main program and Sub program wrt DD statement
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
No new posts Need Suggestion on COBOL program vickey_dw COBOL Programming 5 Thu Jan 05, 2017 10:55 pm
No new posts I can not compile my program PL1 V3.R... Miguel Fernandez PL/I & Assembler 13 Tue Dec 06, 2016 8:30 pm
No new posts IMS BMP program causes 878 system abend Artemk IMS DB/DC 7 Tue Nov 22, 2016 8:26 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am


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