× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.

Hi Timothy,

I'd suggest to use the current version of IBM i Access Client Solutions
(ACS) and prompt then the CALL Command.
In the SQL Reference you'll find also the Syntax of the SQL Call Statement

If you get an error, it could be because you passed a literal, that does not
match the defined parameter. BTW 'X' is interpreted as VarChar(1) and not

CALL YourSchema.YourProcedure (Cast('1' as Char(1));

It also depends on if the parameter is an input, output or In/out parameter.
For an output parameter you may pass a ? (but IIRK it does not work in
STRSQL only in ACS)

Mit freundlichen Grüßen / Best regards

Birgitta Hauser
Modernization ? Education ? Consulting on IBM i

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
?Train people well enough so they can leave, treat them well enough so they
don't want to.? (Richard Branson)

-----Original Message-----
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Timothy Feldmeier
Sent: Freitag, 27. Mai 2022 23:02
To: MIDRANGE-L@xxxxxxxxxxxxxxxxxx
Subject: What is the syntax for calling a stored procedure from SQL command

I want to test a stored procedure that has 1 parameter. I am do in STRSQL.
Call XXXX ('XYZ') It has been used for quite a while, so I know nothing
is wrong with the procedure.

What is the correct syntax for 1 char parameter?

The information transmitted is intended only for the person or entity to
which it is addressed and may contain proprietary, business-confidential
and/or privileged material. If you are not the intended recipient of this
message you are hereby notified that any use, review, retransmission,
dissemination, distribution, reproduction or any action taken in reliance
upon this message is prohibited. If you received this in error, please
contact the sender and delete the material from any computer.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related

Help support midrange.com by shopping at amazon.com with our affiliate link:

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2023 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.