Page 1 of 1

Invoking a COBOL module from a COBOL stored procedure.

PostPosted: Wed Jan 09, 2013 8:35 pm
by seahawk789
Hi

I have a stored procedure of type - C37NSP31. I have a requirement to call a cobol module (Non DB2) from the stored procedure and perform validations based on the return code from the API. Is that possible using the normal call statements like
CALL    WS-API  USING API-REQUEST-RESPONSE.


I tried the above but the stored procedure is returning the error code of -430.

Can you please provide an example that invokes a COBOL module from a COBOL stored Procedure ?

Re: Invoking a COBOL module from a COBOL stored procedure.

PostPosted: Fri Mar 01, 2013 1:15 am
by pmartyn
We use this all the time. Standard sub-program call in COBOL. Just make
sure you use the same interface in both COBOL links. DSNRLI for WLM and
DSNALI or DSNRLI for SPAS.