Calling COBOL from REXX



TSO Programming, ISPF, SDF, SDSF and PDF, FTP, TCP/IP Concepts, SNA & SNA/IP etc...

Calling COBOL from REXX

Postby kumarneeraj_81 » Sat Aug 08, 2009 5:19 am

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
kumarneeraj_81
 
Posts: 2
Joined: Sat Aug 08, 2009 5:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: Calling COBOL from REXX

Postby dick scherrer » Sat Aug 08, 2009 7:34 am

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
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Calling COBOL from REXX

Postby kumarneeraj_81 » Sat Aug 08, 2009 8:28 am

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.
kumarneeraj_81
 
Posts: 2
Joined: Sat Aug 08, 2009 5:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: Calling COBOL from REXX

Postby dick scherrer » Sat Aug 08, 2009 9:52 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to TSO & ISPF

 


  • Related topics
    Replies
    Views
    Last post