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

calling subprograms


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

New User


Joined: 13 Jun 2004
Posts: 85

PostPosted: Sat Sep 25, 2004 12:05 am
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
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Sat Sep 25, 2004 8:37 am
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
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 Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Calling Java method from batch COBOL ... COBOL Programming 5
No new posts Calling an Open C library function in... CICS 1
No new posts calling a JCl inside a JCL JCL & VSAM 3
No new posts Calling IEHPROGM from REXX CLIST & REXX 7
Search our Forums:

Back to Top