MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Load module not found S806

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
js_praveen
Beginner


Joined: 09 Jan 2003
Posts: 20
Topics: 7

PostPosted: Mon Nov 10, 2003 7:05 pm    Post subject: Load module not found S806 Reply with quote

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
View user's profile Send private message
coolman
Intermediate


Joined: 03 Jan 2003
Posts: 283
Topics: 27
Location: US

PostPosted: Mon Nov 10, 2003 10:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
js_praveen
Beginner


Joined: 09 Jan 2003
Posts: 20
Topics: 7

PostPosted: Mon Nov 10, 2003 10:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Tue Nov 11, 2003 6:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
js_praveen
Beginner


Joined: 09 Jan 2003
Posts: 20
Topics: 7

PostPosted: Tue Nov 11, 2003 7:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Wed Nov 12, 2003 5:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group