Calling a stored procedure in COBOL

65 pts.
Tags:
AS/400
COBOL
I'm looking for samples of how to code and compile a call of a stored procedure in a COBOL program? The stored procedure is delivered as part of a software package. No coding examples were provided in the documentation.

Answer Wiki

Thanks. We'll let you know when a new response is added.

Here’s one from IBM:

http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db29.doc.apsg/db2z_xmpcobolstoredproceduregeneral.htm

Here’s one from Search400.com :

http://search400.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid3_gci1127908,00.html

Here is a link to several more:

http://www.google.com/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&source=hp&q=Calling+a+stored+procedure+in+COBOL&btnG=Google+Search

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    It's not clear what you need. The basic CALL for a stored proc:
    exec-sql
         call  storedProcName  ( :inVar1, :outVar2 )
    end-exec.
    Is that all you're looking for? You CALL a stored proc in COBOL similar to how you'd do it in any HLL, with some syntax variations. In the above, there's on COBOL variable that is an IN parameter to the stored proc, and there's one OUT variable. The COBOL variables are inVar1 and outVar2 in that case. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following