On 1/17/2006 7:59 AM, Seremis wrote:
Thanks a lot to Walt and Willy for your suggestions! It's only today
that I can return to the subject, please excuse the delay.

To call an appropriate REXX exec to check dataset information rather
than invoking LIST-CAT via ISPF-SELECT would doubtlessly solve the
problem. But to be honest I don't know how I can invoke a REXX exec
from a COBOL program and deliver a return code to it.

Nor do I know how to have the COBOL program use the catalog search
interface to query the catalog directly, rather than using LISTCAT.

Could you kindly supply me examples how these things are to be done?


Sorry, but I cannot provide any examples.

For calling a REXX exec from a COBOL program running under TSO you could use (I think) either IRXEXEC (see the TSO/E REXX reference) or IKJEFTSR (see the TSO/E Programming Services book). The documentation is for calling from assembler, I believe, but calling from COBOL should be possible. Or perhaps you could call an assembler subroutine to call the service routine you need to use.

For the catalog search interface, see http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/dgt2c140/C.0?SHELF=&DT=20050616141325&; or http://tinyurl.com/d9ndh which has documentation and examples (again from assembler).

        Walt

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to