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
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)
From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of
Sent: Freitag, 27. Mai 2022 23:02
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,
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.