Invoking a COBOL module from a COBOL stored procedure.



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Invoking a COBOL module from a COBOL stored procedure.

Postby seahawk789 » Wed Jan 09, 2013 8:35 pm

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 ?
seahawk789
 
Posts: 2
Joined: Thu Jul 15, 2010 11:13 pm
Has thanked: 0 time
Been thanked: 0 time

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

Postby pmartyn » Fri Mar 01, 2013 1:15 am

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.
pmartyn
 
Posts: 42
Joined: Thu Feb 28, 2013 7:11 pm
Has thanked: 5 times
Been thanked: 3 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post