Focal Point
Qualified column names in a Hold file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1941013132

June 06, 2007, 12:15 PM
Francis Mariani
Qualified column names in a Hold file
Is there a SET command one can use to turn on Qualified column names in a Hold file?

I have a complex Join and I extract columns with the same names in several tables - I'd like to have the column names in the Hold file qualified with the segment or table name.

Thanks.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
June 06, 2007, 12:24 PM
Leah
I'd use a TAG option to pull the fields and then an ASNAMES ON to give each column a unique name for example

PRINT
T1.ID AS 'T1.ID'
T2.ID AS 'T2.ID'
ON TABLE SET ASNAMES ON
...
Of course with out testing not sure if the '.' carries you forward.


Leah
June 06, 2007, 12:59 PM
Francis Mariani
Leah,

Thank you, I'm doing that now (the dot does get carried and behaves as a normal character in the column name). I was hoping that this could be automated.

Cheers,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 23, 2014, 12:30 PM
Francis Mariani
Still looking for a solution seven years hence...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 23, 2014, 02:57 PM
susannah
did you try SET QUALTITLES = ON
i haven't tried it. alas.
but it says:
"Uses qualified column titles in report output when duplicate fieldnames exist in a master file. A qualified column title distinguishes between identical field names by including the segment name.
SET QUALTITLES = {ON|OFF} where
ON uses qualified column titles when duplicate field names exist and FIELDNAME is set to NEW (sic!, which is the default, allows 66char names)
OFF disables the qualified col titles. this value is the default."




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
October 23, 2014, 04:21 PM
Francis Mariani
quote:
distinguishes between identical field names by including the segment name

I just did a quick test and it did not name the columns differently - probably because the HOLD file is a single segment file...


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
October 23, 2014, 04:39 PM
Alan B
I believe QUALTITLES only work for column titles in a report, and do not get passed through to a hold file.


Alan.
WF 7.705/8.007