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



Apparently removing the column LABEL that got automatically created, reverts Heading Line 1 back to the short name.

Ex: LABEL ON COLUMN QGPL.DWTEST (WORK_ORDER_NUMBER IS '')

For future reference it appears the "Heading Line 1" field seems to drive SQL results.

Maybe a bug ? Maybe a feature ?

Looks like I'll be writing some ugly AS SQL statements....

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx

-----Original Message-----
message: 3
date: Wed, 3 Nov 2021 19:28:06 +0000
from: Richard Schoen <richard@xxxxxxxxxxxxxxxxx>
subject: RE: Question on Long Column Names Returned from SQL Query. I
Want Short Column Names

Here's an example if anyone else wants to try this. I'm on V7R3 and maybe not at latest PTF level as well :

CREATE TABLE QGPL/DWTEST (
WORK_ORDER_NUMBER FOR COLUMN FTWON NUMERIC(9, 2) NOT NULL DEFAULT 0,
PRIMARY KEY( WORK_ORDER_NUMBER ) )
RCDFMT DWSERVICE ;

Tests:
If you do SELECT * FROM QGPL/DWTEST, do you see: WORK_ORDER_NUMBER as the heading ? ( I do)

If you do SELECT WORK_ORDER_NUMBER FROM QGPL/DWTEST, do you see: WORK_ORDER_NUMBER as the heading ? ( I do)

If you do SELECT FTWON FROM QGPL/DWTEST, do you see: WORK_ORDER_NUMBER as the heading ? ( I do. It should show FTWON, but doesn't)

I get the same results in ODBC, STRSQL or ACS SQL.

Regards,
Richard Schoen
Web: http://www.richardschoen.net
Email: richard@xxxxxxxxxxxxxxxxx


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.