AS/400 SQL Procedure call from CL program

10 pts.
Tags:
CL
SQL stored procedures
STRQMQRY
I am calling an SQL stored procedure (counts records for a value) from a CL program. I want to send the value to compare to the CL SQL pricedure and get back the count. How do I define the count variable (&COUNT ?) in the CL program? I am using STRQMQRY to call.

Answer Wiki

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

have you tried it as *DEC (n n) where n n is the length and number of decimal places?

=========================================================

A QM query can’t return a value to CL. CL can’t call stored procs. Some different process needs to be developed. Actually, it seems to be a very long way around what should be simple. CL can call programs directly or it can count rows by itself.

Please describe the business process that you need to do. A proper suggestion can probably be provided.

Tom

Discuss This Question:  

 
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

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