ALIAS would be for field level only.

On Tue, Oct 21, 2014 at 6:52 PM, Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx>
wrote:

At 7.2, ALIAS is a field-level keyword - can't use it to get the long name
of a PF.


On 10/21/2014 4:57 PM, Darryl Freinkel wrote:

Try using the ALIAS keyword in DDS. I have not used it, but I believe its
for that purpose.

On Tue, Oct 21, 2014 at 5:16 PM, Vernon Hamberg <vhamberg@xxxxxxxxxxxxxxx

wrote:

John

I tried something kind of crazy - I had a PF created using DDS, then I
used the RENAME TABLE SQL statement, and I was able to put the long name
on
it - very cool!

So your colleague could use DDS to create the file, and you could have a
command that uses RUNSQL to do the RENAME.

Here is an example -

RENAME TABLE DP2TEST/ACEAPP TO LONGVERSIONACEAPP FOR SYSTEM NAME ACEAPP

Be careful to specify the system name - otherwise it'll be changed to
something like LONG000001 in this case.

HTH
Vern


On 10/21/2014 3:59 PM, John R. Smith, Jr. wrote:

I looked for an SQL group to post this to but did not see one so I'm
going
to post it here.

I need to create a file on the iSeries using DDS that has both a
physical
file name and an alias name (not sure that is the right term).
Basically I
need to reference it as "INVNBR" in RPGLE FSpecs and
"INVOICE_NUMBER_TABLE"
when using SQL.

Is there any way to do that with DDS?

By the way, creating the file via DDS was a mandate from a dinosaur that
refuses to learn SQL.


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.




--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-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.