Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Suppress value reported by BREAK in D... Learncoholic DFSORT/ICETOOL 3 Wed Aug 16, 2017 6:03 pm
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us