|
Could use some help.
Is there any way I can avoid hard coding the library name on
the call statement? If I can know the userid, I can determine
where to call the program from.
I guess I could call this stored procedure from a clp program
and pass in a library reference, but that seems like the long
way around.
I admit, I'm not too sharp on the stored procedures, but I've been kicking and biting my way thru it. I tried to DECLARE USER
and then VALUES SESSION_USER INTO USER but that didn't seem to
work as it does in SQL stored procedures.
Appreciate any help, or references. Ignore the &lib, that's something Aldon uses when a proc is created in aldon to promote
to programs from development to QA.
CREATE PROCEDURE &LIB/REM125SP ( ) RESULT SETS 1 LANGUAGE CL SPECIFIC &LIB/REM125SP NOT DETERMINISTIC NO SQL CALLED ON NULL INPUT EXTERNAL NAME CRPRDLIBTS/REM110CL PARAMETER STYLE GENERAL;
CALL CRPRDLIBTS/STRTSTLIB(COCD);
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.