Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
<<SNIP re: working SQL stored procedure example>>
I put the following function script through the same RUNSQLSTM as
above. Again this is a hack to prove a concept, and A00720 won’t
be the final name of the function! Is Language RPGLE? I thought
Language had to refer to the language used in the root code? Have
I made some fundamental mistake in the script?:
<code>
DROP FUNCTION EVEDEV/A00720
;
CREATE FUNCTION EVEDEV/A00720
( VARCHAR(2)
, VARCHAR(3), , NUMERIC(7,0),
, DECIMAL(8,0),
, DECIMAL(3,0)
) RETURNS CHAR(78) CAST FROM VARCHAR(78)
-- SET OPTION DBGVIEW= *SOURCE
LANGUAGE RPGLE DETERMINISTIC NO SQL
RETURNS NULL ON NULL INPUT
NO EXTERNAL ACTION ALLOW PARALLEL
PARAMETER STYLE GENERAL
--SIMPLE CALL
EXTERNAL NAME 'EVEDEV/#CMSVP(GETCLMAGEXS)'
RUNSQLSTM SRCFILE(EVEDEV/QRPGSRC) SRCMBR(a00720)
COMMIT(*NONE) ERRLVL(30) DBGVIEW(*SOURCE)
</code>
I get nothing in the job log. The spool file tells me the
function was created:
SQL7998 0 1 Position 1 DROP FUNCTION statement complete.
SQL7997 0 3 Position 1 Function A00720 was created in EVEDEV.
<<SNIP end of listing>>
http://www-01.ibm.com/support/docview.wss?uid=nas1783fbaed2201c16b8625738d00022de5
Trying to implement Birgitta’s approach:
Never having debugged an SQL script though Ops navigator I of course went to my browser. I found the following guide on
debugging SQL scripts through Ops Navigator. I hope that’s what
Birgitta intended:
I got as far as step 3, but failed on: CL: CRTDUPOBJ QAQQINI QSYS *FILE MYLIB *NO; As I don’t have authority under my QPGMR sign on.
QAQQINI is present in two libraries and is owned as follows:
Lib: QSYS Owner=QSYS
Lib: QUSRSYS Owner=QSECOFR
Is this the way it should be?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2026 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.