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
 

 

i have a main program P1 and two subprograms P2 and P3 , is

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

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Thu May 19, 2005 2:05 pm    Post subject: i have a main program P1 and two subprograms P2 and P3 , is
Reply with quote

i have a main program P1 and two subprograms P2 and P3 , is it possible that P2 can be linked statically and P3 be linked dynamically with the main program P1, if so how will you do this ?

please explain

thanks

vbhat
Back to top
View user's profile Send private message

vidyasaraswathi

New User


Joined: 10 May 2005
Posts: 72

PostPosted: Thu May 19, 2005 5:03 pm    Post subject: Re: i have a main program P1 and two subprograms P2 and P3
Reply with quote

Hi Vbhat,

In the main program P1, specify compiler option as NODYNAM.
In the WORKING-STORAGE section, define

01 WS-PROG1 PIC X(2) VALUE 'P3'.



P2 can be linked statically by the code: CALL 'P2'
P3 be linked dynamically by the code: CALL WS-PROG1


Corrections are always welcome

Vidya
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Thu May 19, 2005 7:59 pm    Post subject:
Reply with quote

ya i agree with vidya.As when u mention compiler option as no dynam this should work.
at the same time if u r compiling the program dirctly by submitting a JCL then while compiling the program P1 pass the object module of P2 in the link edit step of the program P1 and do compile and link edit the program P3 seperately. In the while executing the program keep all load module and then u don't need to mention anything for compiler option.
I think this should work
correct me if i m wrong.
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 A sample of exit program for exit XMN... lind sh CICS 2 Mon Oct 03, 2016 5:07 pm


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