Eric said, "I think this would be most appropriate as an option on external
datastructure definitions.... I don't think this would work very well with
I specs (which have limits on field names)."
Yes I agree that this should be a keyword option on an externally described
datastructure definition.
Bruce: Thanks for the link! I'll add this to my list'O'projects that I want
to do one day. Right next to adding a WDSc plugin to put the parameter
names in the outline for the code-assist popups.
Thanks,
Robert Newton
EDPS
Electronic Data Processing Services
Software Engineer
rnewton@xxxxxxxxxxxxxxxxx
This communication is confidential and is intended to be privileged. If
there is a problem with this transmission, please contact the sender. If
the reader of this message is not the intended recipient, or the employee
or agent responsible to deliver it to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.
Bruce Vining
<bvining@brucevin
ing.com> To
Sent by: RPG programming on the AS400 /
rpg400-l-bounces@ iSeries <rpg400-l@xxxxxxxxxxxx>
midrange.com cc
Subject
02/25/2008 04:50 Re: Externally Described DS with
PM SQL Column Names
Please respond to
RPG programming
on the AS400 /
iSeries
<rpg400-l@midrang
e.com>
It is certainly possible to write a pre-compiler. You'll even find APIs to
help you along. For example
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/apis/debug4.htm
talks about how to build debug views within your pre-compiler so that users
can debug at your level of source rather than just the end result of all
the compilers and pre-compilers.
Bruce Vining
http://www.brucevining.com/
RNewton@xxxxxxxxxxxx wrote:
I have thought to myself that maybe it would be possible to write a
precompiler that could parse through the d-specs and read that custom
keyword of "naming(*sql)" or something. It would basically replace the eds
d-spec with a regular ds with all of the SQL column names brought in. That
way the normal compiler could pick up after it and not step on anything.
Is it even possible to write a custom precompiler and hook it into the
normal compile routine... like a pre-pre-sql compiler?
Something like this maybe:
d extFile e ds extname(myFile) qualified inz
d naming(*sql) <--- This would
be nice
/free
exec sql
SELECT f.myLongSQLFieldName
INTO :extFile.myLongSQLFieldName
FROM myFile as f;
/end-free
Thanks,
Robert Newton
EDPS
Electronic Data Processing Services
Software Engineer
rnewton@xxxxxxxxxxxxxxxxx
This communication is confidential and is intended to be privileged. If
there is a problem with this transmission, please contact the sender. If
the reader of this message is not the intended recipient, or the employee
or agent responsible to deliver it to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.
rob@xxxxxxxxx
Sent by:
rpg400-l-bounces@ To
midrange.com RPG programming on the AS400 /
iSeries
cc
02/25/2008 02:43
PM Subject
Re: Externally Described DS with
SQL Column Names
Please respond to
RPG programming
on the AS400 /
iSeries
e.com>
I think several would use it but, if it was a priority constraint within
IBM we'd rather they spend the development dollars elsewhere. I am hoping
that a resolution would be as simple as a keyword that says whether to use
long names or short names and defaults to the current short names.
Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
RNewton@xxxxxxxxxxxx
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
02/25/2008 02:37 PM
Please respond to
RPG programming on the AS400 / iSeries
To
RPG programming on the AS400 / iSeries
cc
Subject
Re: Externally Described DS with SQL Column Names
I had not considered that but I will do so. Thank you for the link.
In the interum, is this feature something anyone else would care to have,
or am I way off in left field by myself, as usual?
Thanks,
Robert Newton
EDPS
Electronic Data Processing Services
Software Engineer
rnewton@xxxxxxxxxxxxxxxxx
This communication is confidential and is intended to be privileged. If
there is a problem with this transmission, please contact the sender. If
the reader of this message is not the intended recipient, or the employee
or agent responsible to deliver it to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.
rob@xxxxxxxxx
Sent by:
rpg400-l-bounces@ To
midrange.com RPG programming on the AS400 /
iSeries
cc
02/25/2008 02:04
PM Subject
Re: Externally Described DS with
SQL Column Names
Please respond to
RPG programming
on the AS400 /
iSeries
e.com>
A somewhat cursory glance tells me you're out of luck. Have you thought
about opening up a Design Change Request?
https://www-912.ibm.com/r_dir/ReqDesChange.nsf/Request_for_Design_Change?OpenForm
Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
RNewton@xxxxxxxxxxxx
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
02/25/2008 01:45 PM
Please respond to
RPG programming on the AS400 / iSeries
To
RPG programming on the AS400 / iSeries
cc
Subject
Externally Described DS with SQL Column Names
Hi all,
I have this craving to use the longer SQL column names in my externally
described datastructures. It will make coding much more efficient when the
field names are self describing. Plus I use the intellisense feature in
WDSc (ctrl+space with the outline built) and this would really be handy in
combination with that tool. Then again, if the intellisense feature would
include the description of the fields this would not bug me as much. Oh,
and while I'm on it... why should we have to create the outline. That
thing
takes days to build when I have a few eds's in my program! Couldn't it run
as a background process always updating as you make changes to your
program?
So, does anyone know any tricks I can perform on my D spec to get the SQL
names rather than the 10 position ones?
Below is an example of what I am talking about:
d extFile e ds extname(myFile) qualified inz
/free
exec sql
SELECT f.myLongSQLFieldName
INTO :extFile.MYLSQLFNAM <--- this is ugly
FROM myFile as f;
/end-free
I would much rather be able to:
d extFile e ds extname(myFile) qualified inz
/free
exec sql
SELECT f.myLongSQLFieldName
INTO :extFile.myLongSQLFieldName
FROM myFile as f;
/end-free
Thanks in advance for any insight,
Robert Newton
EDPS
Electronic Data Processing Services
Software Engineer
rnewton@xxxxxxxxxxxxxxxxx
This communication is confidential and is intended to be privileged. If
there is a problem with this transmission, please contact the sender. If
the reader of this message is not the intended recipient, or the employee
or agent responsible to deliver it to the intended recipient, you are
hereby notified that any dissemination, distribution or copying of this
communication is strictly prohibited.
--
This is the RPG programming on the AS400 / iSeries (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.
--
This is the RPG programming on the AS400 / iSeries (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.
--
This is the RPG programming on the AS400 / iSeries (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.
--
This is the RPG programming on the AS400 / iSeries (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.
--
This is the RPG programming on the AS400 / iSeries (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.
Bruce
Bruce Vining Services
507-206-4178
--
This is the RPG programming on the AS400 / iSeries (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.