| IBM MAINFRAME HELP & SUPPORT FORUMS Technical Forums for IBM Mainframe Applications like COBOL, JCL, CICS, DB2, FileAid, DFSORT, Endevor, Xpediter, CoolGen, CA-7&11, AbendAid, IMS, IDMS, PL/I, MqSeries, SyncSort, Assembler, ChangeMan, Easytrieve, InterTest, REXX, CLIST etc...
|
| View previous topic :: View next topic |
| Author |
Message |
meetsrk
Joined: 13 Jun 2004
Posts: 86
|
| Posted: Sat Sep 25, 2004 12:05 am Post subject: calling subprograms |
|
|
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 |
|
priya
Joined: 24 Jul 2003
Posts: 624
Location: Bangalore
|
| Posted: Sat Sep 25, 2004 8:37 am Post subject: Re |
|
|
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 |
|
| |
THIS IS AN ARCIVE FORUM IN READ ONLY MODE. IF YOU WANT TO ASK YOUR DOUBTS USE THE ACTUAL FORUM
|