× 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.



Hi Buck,

The DDS ALIAS keywords was I believe originally intended specifically for
COBOL programs, hence the 30-character length restriction, all uppercase,
limited special characters, etc.

The long field name on the CREATE TABLE is also unavailable from RPGLE; I
don't know if COBOL can use it either, but my guess would be that it cannot.
But since your intent is to give readable names to the SQL guys, that
shouldn't matter.

There does not seem to be any SQL method of changing a column name once the
file has been created. ALTER TABLE only allows changing type, default value,
or null capability. LABEL ON only changes the TEXT or COLHDG. Looks like
you're going to have to meddle with the DDS.

Regards,
Peter Dow
Dow Software Services, Inc.
909 425-0194 voice
909 425-0196 fax



> >> Is there any way except DDS to put an alias on a field?

> After seeing both answers, I'm sure I did a poor job of explaining what
I'm
> after.  In DDS, there's a keyword called ALIAS.   It adds another name
(IBM
> call it the alternative name.)  This alternative name is not accessible
from
> RPG, but it is accessible from COBOL, PL/I and SQL.
>
> The DDS specs are created by a CASE tool called Cool2:E (formerly Synon.)
> The CASE tool is great, but we want to write some stored procedures and
the
> SQL guys are balking at the Ugly generated field names; names that look
like
> this: B1LWNB, B1EJCF, B1EKCF, B1N4CD...  I can easily write a program to
> update the generated DDS, add ALIAS to each field and CHGPF each file, but
I
> was hoping for a way to do that without having to tinker with the DDS.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



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.