Dear Amy
As far as I can remember, neither STRSQL nor RUNSQL has a capability to receive any returned parameters from the called stored procedure. Only Run SQL Script tool has this capability.
Why would you have a need for a CL program to receive a returned parameter from a stored procedure? Are you aware that SQL script for IBM i can contain both CL commands and SQL statements (you start every line of CL command with "CL:" and end it with the usual semicolon)? Perhaps, writing an SQL script may be a solution for you here. You run the script text file (stored in IFS as a stream file) with either Run SQL Script tool or RUNSQLSTM command.
------------------------------
Right action is better than knowledge; but in order to do what is right, we must know what is right.
-- Charlemagne
Satid Singkorapoom
------------------------------