Page 1 of 1

Calling COBOL from REXX

PostPosted: Sat Aug 08, 2009 5:19 am
by kumarneeraj_81
Hi,

I have a requirement where REXX calls a COBOL program and COBOL programs INTURNS calls COBOL.

I used the LIBDEF command to define the LOADLIBs where my COBOL program is present. But, REXX program was able to call the first COBOL but when i calls the SECOND COBOL, it fails with the message "load module not found"
DOes any body has idea how to resolve the issue?

I searched over the GOOGLE and found that i need to define my LOADLIB thru TSOLIB but this works in TSO/E ready environment. I don't know how to invoke it.

Please help me in resolving the issue

Thanks,
Neeraj

Re: Calling COBOL from REXX

PostPosted: Sat Aug 08, 2009 7:34 am
by dick scherrer
Hello,

You could put both modules in the same library. . .

You might also look at the info about ALTLIB rather than LIBDEF:
http://publibz.boulder.ibm.com/cgi-bin/ ... J4C550/1.8

Re: Calling COBOL from REXX

PostPosted: Sat Aug 08, 2009 8:28 am
by kumarneeraj_81
I tried Using the ALTLIB, But it still says module not found.
If i can use TSOLIB, i feel it can work. Do you have idea how to use it or any other way to define the load path.

Re: Calling COBOL from REXX

PostPosted: Sat Aug 08, 2009 9:52 am
by dick scherrer
Hello,

If you are unable to successfully modify the list of libraries to search, i suggest you resolve this before proceeding.

If i can use TSOLIB, i feel it can work
Why would you believe this would work when ALTLIB would not?

Is there some reason you are using multiple libraries that are not in the search path established for your tso session at login? On most systems, there are test libraries defined for just this purpose.