Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
calling subprograms

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
meetsrk

Active User


Joined: 13 Jun 2004
Posts: 86

PostPosted: Sat Sep 25, 2004 12:05 am    Post subject: calling subprograms
Reply with quote

hi ppl,

i know how to call a sub program from a main program. but when i try to call 2nd sub program from the 1st sub program, it shows a linkage error.

can any1 help me out?

well i CL (compile and link) both the subprograms and the load module is stored inside one PDS. till now i get maxcc = 0 for both.

but when i run the main program, it has successfully entered into first sub program then i get an linkage error. it didnt even get into the second sub program.
Back to top
View user's profile Send private message
References
priya

Moderator


Joined: 24 Jul 2003
Posts: 624
Location: Bangalore

PostPosted: Sat Sep 25, 2004 8:37 am    Post subject: Re
Reply with quote

Hi,

You store the load modules of the two sub program in the same PDS and specify that PDS as your link library. (LKED.SYSLIB)

You GO BACK / EXIT PROGRAM in both sub program.

It will work. If not, post your code here. I will correct you.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1