Re: What is wrong?
- From: CRPence <crpence@xxxxxxxxxxxx>
- Date: Thu, 24 Jan 2008 15:33:17 -0600
Understood. However the quoted snippet of my most recent response, snipped too much of that response; look again ;-) The quoted snippet to which I responded, should have made it clear that I was responding first to the comment that the "crtrpgmod does not understand sql." And second about how to setup to call the procedure to test and debug -- using SQL.
Anyhow, although obviously CRTRPGMOD is not going to like /EXEC SQL, if the OP did not have a problem with CRTRPGMOD, then one has to wonder why the quoted comment was even written? Perhaps my post was for naught, with regard to progressing toward resolution of the issue, but it did address the quoted comment with respect to the given source.
Besides, my not-so-ulterior motive was to get the OP to consider that there was possibly little reason to make an effectively pure SQL procedure from RPG when it could be done simply instead, as a purely SQL routine; as coded, an SQL function. :-)
Regards, Chuck
--
All comments provided "as is" with no warranties of any kind whatsoever and may not represent positions, strategies, nor views of my employer
Jonathan Ball wrote:
On Jan 24, 12:43 pm, CRPence <crpe...@xxxxxxxxxxxx> wrote:.The /EXEC SQL and /END-EXEC are not RPG, they are tags to denote what
a pre-compiler is supposed to convert into RPG. They are directives to
the SQL precompiler, that the upcoming and prior source is to be
interpreted as embedded SQL source, rather than as RPG source. Use
CRTSQLRPGI OBJTYPE(*MODULE) to create an SQLRPG module.
The original poster isn't having trouble with the embedded SQL. His
problem is ILE and RPGLE concepts: he has a subprocedure in his code,
and no way of calling it. Look again.
[...]
- Follow-Ups:
- Re: What is wrong?
- From: qgenesist
- Re: What is wrong?
- References:
- What is wrong?
- From: qgenesist
- Re: What is wrong?
- From: Saml
- Re: What is wrong?
- From: Hauser@xxxxxxxxxxxxxxx
- Re: What is wrong?
- From: qgenesist
- Re: What is wrong?
- From: CRPence
- Re: What is wrong?
- From: qgenesist
- Re: What is wrong?
- From: CRPence
- Re: What is wrong?
- From: Jonathan Ball
- What is wrong?
- Prev by Date: Re: What is wrong?
- Next by Date: Re: iSeries OS Hardware/OS Upgrade
- Previous by thread: Re: What is wrong?
- Next by thread: Re: What is wrong?
- Index(es):
Relevant Pages
|