|
wrote:
Alan, that's good to hear.
I guess my next step is to see if we can get the latest PTF cume (we are
never up to date on them). But even so, I found a handout by Barbara Morris
stating that the SQL Precompiler, " Supports all the new features in ILE RPG
V6R1." Which means I either have a code issue, or I need to open a PMR.
I'll give some more detail (as it turns out the caveat I previously
mentioned wasn't exactly what's happening in my situation).
I have a copybook with the following D-spec.
// Shared Templates
D dsTmpl_CalTypTID...
D E DS Qualified Template
D ExtName( 'CALTYPTIDP' )
In the service program module, I have the following code, which does
compile:
D ds_CalTypTID E DS ExtName( CalTypTIDP ) Qualified
D Dim( MAX_BLOCK_READ )
However what I want is this, which does not compile (due to SQL below).
The Verifier says this is ok for the rest of the RPG code.
D ds_CalTypTID DS LikeDS( dsTmpl_CalTypTID )
D Dim( MAX_BLOCK_READ )
The SQL that uses this DS based on a Template that is failing in the
pre-compile is this:
Exec SQL
Fetch CalTypTIDPCursor FOR :epMaxRead ROWS into :ds_CalTypTID;
Precompiler listing:
DS_CALTYPTID 53
DS_CALTYPTID **** 1098
SQL5011 30 1098 Position 59 Host structure array DS_CALTYPTID not
defined or not usable.
Thanks,
Kurt Anderson
Sr. Programmer/Analyst
CustomCall Data Systems
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Alan Campin
Sent: Tuesday, April 05, 2011 3:46 PM
To: RPG programming on the IBM i / System i
Subject: Re: SQL pre-compiler & the new Template keyword
Yep.
On Tue, Apr 5, 2011 at 2:15 PM, Kurt Anderson
<kurt.anderson@xxxxxxxxxxxxxx<mailto:kurt.anderson@xxxxxxxxxxxxxx>>wrote:
Interesting. I suppose one caveat is that these are procedurethat as well?
parameters defined like template data structure subfields. Are you doing
copybook).
Thanks,
Kurt
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Alan Campin
Sent: Tuesday, April 05, 2011 2:40 PM
To: RPG programming on the IBM i / System i
Subject: Re: SQL pre-compiler & the new Template keyword
It was at V6R1. I do it all the time
On Tue, Apr 5, 2011 at 10:53 AM, Kurt Anderson <
kurt.anderson@xxxxxxxxxxxxxx<mailto:kurt.anderson@xxxxxxxxxxxxxx>
wrote:
Does anyone know if we can expect the SQL pre-compiler to be updated
any time soon to allow for the use of variables that have been
defined like a variable/DS that has the Template keyword specified?
We use the Template keyword a lot. Most of our file encapsulated
service programs include a template of the file in the copybook that
the service program uses for defining pretty much all variables
related to the file (and for prototypes, which is why it's in the
RPG400-L@xxxxxxxxxxxx> To
I'm taking a stab at creating a file encapsulated service program
using SQL instead of native I/O and quickly discovered that the SQL
pre-compiler is not a fan of templates.
I'm at IBM i 6.1.
Thanks,
Kurt Anderson
Sr. Programmer/Analyst
CustomCall Data Systems
--
This is the RPG programming on the IBM i / System i (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx<mailto:
RPG400-L-request@xxxxxxxxxxxx> Before posting, please takesubscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx<mailto:
http://archive.midrange.com/rpg400-l.a moment to review the archives at
RPG400-L@xxxxxxxxxxxx> To subscribe,--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx<mailto:
unsubscribe, or change list options,RPG400-L-request@xxxxxxxxxxxx> Before posting, please take a
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx<mailto:
moment to review the archives at http://archive.midrange.com/rpg400-l.RPG400-L@xxxxxxxxxxxx> To subscribe,
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
list To post a message email: RPG400-L@xxxxxxxxxxxx<mailto:
unsubscribe, or change list options,RPG400-L-request@xxxxxxxxxxxx> Before posting, please take a
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx<mailto:
moment to review the archives at http://archive.midrange.com/rpg400-l.--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx<mailto:
RPG400-L@xxxxxxxxxxxx> To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx<mailto:
RPG400-L-request@xxxxxxxxxxxx>
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
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.