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     Column Headers for Across Output

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Column Headers for Across Output
 Login/Join
 
Platinum Member
posted
I have a query that is creating an "across" output (as an access developer, I think of this as a cross-tab query).

TABLE FILE 2070BASE
SUM
CNT.EMPLID

BY TYPLEV
ACROSS JOB_FAMILY

ON TABLE PCHOLD FORMAT EXL2K
END

I am trying to manually name the resulting column headers from the "ACROSS JOB_FAMILY" line.

Is this possible?


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Virtuoso
posted Hide Post
quote:
I am trying to manually name the resulting column headers from the "ACROSS JOB_FAMILY" line.


Need a little more clarification on what you mean for naming the column headings. Do you mean each across column has a different heading? Or you want to change the general heading for all columns?


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Platinum Member
posted Hide Post
The code creates three columns:

TYPLEV JOB_FAMILY_1 JOB_FAMILY_2
1 1 10
2 2 20

I want to change the value of the "JOB_FAMILY_1" and "JOB_FAMILY_2" column headers to be "LEVEL_1" and "LEVEL_2".


Production - 7.6.4
Sandbox - 7.6.4
 
Posts: 241 | Location: Bethesda, MD | Registered: August 14, 2007Report This Post
Master
posted Hide Post
FOCUS will use the values of the the ACROSS field, for the column headings.

So, can you programatically create a new field to ACROSS on, related to your original field?

For example:

  
DEFINE FILE CAR
 LEVEL/A10 = IF COUNTRY EQ 'ENGLAND' THEN 'LEVEL_1' ELSE
              IF COUNTRY EQ 'FRANCE' THEN 'LEVEL_2' ELSE 'LEVEL_3';
END
TABLE FILE CAR
SUM    CNT.SEATS
BY     CAR
ACROSS LEVEL
END


Yields:

  
                  LEVEL
                  LEVEL_1     LEVEL_2     LEVEL_3
CAR
------------------------------------------------------
ALFA ROMEO            0           0           3
AUDI                  0           0           1
BMW                   0           0           6
DATSUN                0           0           1


Regards,
Dave
 
Posts: 822 | Registered: April 23, 2003Report 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     Column Headers for Across Output

Copyright © 1996-2020 Information Builders