× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



What not just use SQL? The names can be anything in your data structure that
you either Fetch or Sql Into so you can use long names. It sure would be
nice if IBM gave use the ability on a Extname to allow the compiler to bring
in the long names.

On Wed, Mar 25, 2009 at 3:07 PM, Buck <kc2hiz@xxxxxxxxx> wrote:

V5R4

H ALWNULL(*USRCTL)
D long_ds e ds extname(employee)
D date_of_birth e extfld(dob)

The external file EMPLOYEE was created with SQL, and the column DOB is
NULL CAPABLE. Created with an RPG-friendly short name, but prefer the
longer name. There doesn't seem to be a way to tell RPG to use the long
name, so I figured I'd just do some renames.

Unfortunately, the new field DATE_OF_BIRTH is not null capable, which
rather throws a monkey-wrench into the plans. Ultimately, I wanted to
use this to pass a record around as a parameter in several subprocedures.

I see no mention of null dropping in the manual's EXTFLD section (p.350)
Likewise, I see no mention of dropping the null-capable attribute in
the Database Null Value Support section (p.257)

Is this working as intended? If so, I'll drop a line to the
documentation people to get the manual adjusted. If it is working as
intended,is the basic answer that I can't rename subfields in an
externally defined DS, and that the database guy ought to stick to 10
characters like we always did in the past?
--buck
--
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 thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.