Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Hold as db2 fieldname question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Hold as db2 fieldname question
 Login/Join
 
Member
posted
I have some db2 tables, an SQL query and I want to save the results in a db2
table. I'm using on table hold as myname format db2 and the table is saved.
That part works perfect; unfortunately I can not figure out how to save
field names, the only thing I get are the aliases E01... The alternative at
this point seems to be to script the table and do an insert. Hold as is
much simplier if I can get the field names working.

Thanks,

Steve
 
Posts: 6 | Location: Newport Beach, CA | Registered: December 22, 2006Report This Post
Platinum Member
posted Hide Post
Hi Steve,
The way around this is to SET ASNAMES=ON and then use AS names, like
SUM SALES AS 'CASH'
Hope this helps.
Rich


WebFOCUS 8202 Win 2012
Test - WebFOCUS 8203 on Win 2012
 
Posts: 173 | Registered: November 16, 2005Report This Post
Member
posted Hide Post
Rich,
I guess I was trying to take a little shortcut by doing a Print * .

Took your suggestion and it works great!

Thanks,

Steve
 
Posts: 6 | Location: Newport Beach, CA | Registered: December 22, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Hold as db2 fieldname question

Copyright © 1996-2020 Information Builders