|
I call the RUNSQLSTM and the SPL drops the procedure but fails to create the SPL because there is some syntax problem. The next time I run RUNSQLSTM I have to comment out the --DROP. Is there a way to condition the drop statement in a stored procedure? Thank you for any help with this. *************************************************** DROP PROCEDURE HRCUST/LOAD_TR; -- GENERATE SQL -- VERSION: V5R2M0 020719 -- GENERATED ON: 04/10/03 10:46:12 -- RELATIONAL DATABASE: MYSYSTEM -- STANDARDS OPTION: DB2 UDB AS/400 CREATE PROCEDURE HRCUST/LOAD_TR ( OUT TR_CNT CHAR(10) ) -- CALLED ON NULL INPUT EXTERNAL NAME HRCUST/CUGSTGPTR LANGUAGE RPGLE GENERAL Tom Wheeler @ ECS
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.