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     ACROSS column names in a HOLD file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
ACROSS column names in a HOLD file
 Login/Join
 
<Pietro De Santis>
posted
I have two columns that begin with the same set of characters. I use an Across to create a HOLD file. Both columns end up having the same name. How do I prevent this?

Here's an example:

SET ASNAMES=ON

TABLE FILE EDUCFILE
SUM
COURSE_CODE
COURSE_NAME
ACROSS EMP_ID
ON TABLE HOLD AS H1
END
TABLE FILE H1
PRINT *
END

I thought SET FIELDNAME=NEW might do it (NEW is the default), but this did not work.
 
Report This Post
Master
posted Hide Post
I'm not sure if you can prevent this. you can issue a ? HOLD H1 and this will show you what layout (Fieldname, ALIAS and format) you can reference each field by there alias.

Example: PRINT E01 E02 etc...

Hope this helps
 
Posts: 865 | Registered: May 24, 2004Report This Post
Master
posted Hide Post
Hi Pietro,

Try adding the 'AS' phrase to each verb object:

Adding the following code to your report:

COURSE_CODE AS CODE<br />COURSE_NAME AS NAME 
Yields:


CODE071382660 NAME071382660
------------- -------------
101 FILE DESCRPT & MAINT
Regards,
Dave

This message has been edited. Last edited by: <Mabel>,
 
Posts: 822 | Registered: April 23, 2003Report This Post
<Pietro De Santis>
posted
Thank you.

This technique only works if the ACROSS column is less than 12 characters long.
 
Report This Post
Expert
posted Hide Post
but so way better than it used to be. i think the lim was 6, and it would give you
COD001 COD002 COD003... , which wasn't bad really, Big Grin
 
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003Report This Post
<Pietro De Santis>
posted
In the brave new world we're living in, it should be 66.
 
Report 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     ACROSS column names in a HOLD file

Copyright © 1996-2020 Information Builders