View previous topic :: View next topic |
Author |
Message |
js_praveen Beginner
Joined: 09 Jan 2003 Posts: 20 Topics: 7
|
Posted: Mon Nov 10, 2003 7:05 pm Post subject: Load module not found S806 |
|
|
Hi,
I have a rexx program that calls a Cobol program which inturn calls another Cobol subroutine. The first call, rexx to Cobol is successful but the call from Cobol program to the Cobol subroutine is failing with s806. I have defined the load libraries using ISPEXEC, but it is not able to find the load module. I'm listing the library def below.
Code: |
/**REXX***/
"ISPEXEC LIBDEF ISPLLIB DATASET ID('ITHT.BT.PGMLIB')"
....
....
"CALL 'MYPGM.LOADLIB(DBVALID)'"
|
DBVALID is the first cobol program and it calls another cobol subroutine.
I can't understand where I'm going wrong.
Appreciate your help.
Thank you
JSP |
|
Back to top |
|
|
coolman Intermediate
Joined: 03 Jan 2003 Posts: 283 Topics: 27 Location: US
|
Posted: Mon Nov 10, 2003 10:08 pm Post subject: |
|
|
Couple of questions:
Where are all your COBOL programs, is it in your PDS or some version management tool like Panvalet/Changeman. Ensure that your PGMLIB contains the load modules of all the cobol program, be it called/calling. In case of changeman, ensure that all of your packages are "promoted" and ensure that you are pointing to the correct load library
Hope this helps...
Cheers,
Coolman
________
vaporizer wholesaler
Last edited by coolman on Sat Feb 05, 2011 1:32 am; edited 1 time in total |
|
Back to top |
|
|
js_praveen Beginner
Joined: 09 Jan 2003 Posts: 20 Topics: 7
|
Posted: Mon Nov 10, 2003 10:59 pm Post subject: |
|
|
Yes all the load modules are there in the loadlibs. The calling program and the called program (both cobol) are existing in different loadlibs.
Thanks
JSP |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Tue Nov 11, 2003 6:30 pm Post subject: |
|
|
It's possible you will need to allocate your load libraries in native TSO (i.e. before entering the ISPF environment).
Before considering that, see if changing the CALL works:
"ISPEXEC SELECT CMD(CALL 'MYPGM.LOADLIB(DBVALID)')" _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
js_praveen Beginner
Joined: 09 Jan 2003 Posts: 20 Topics: 7
|
Posted: Tue Nov 11, 2003 7:34 pm Post subject: |
|
|
Mervyn,
It worked like a charm, you are just great!!!! I was searching one manual after another till now to get a solution. I tried the same thing using CLIST and it is working fine, so was thinking of using CLIST rather than REXX (both are new to me).
So my previous CALL was executed from TSO and the load libs were defined in ISPF env, is that the reason why it didn't pick the load module?
Thank you so much,
JSP |
|
Back to top |
|
|
Mervyn Moderator
Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Wed Nov 12, 2003 5:35 pm Post subject: |
|
|
Yes, I believe that's the reason.
I can't claim all the credit; I'm just passing on something that helped me once before. _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
|
|
|