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     Title and data in same row for BY and ACROSS fields

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Title and data in same row for BY and ACROSS fields
 Login/Join
 
Member
posted
Can we have Country Title and Car data, in same row.

TABLE FILE CAR
SUM DC
BY COUNTRY
ACROSS CAR AS ''
END


WF-7703/7705
Windows, All Outputs
 
Posts: 4 | Registered: January 21, 2015Report This Post
Master
posted Hide Post
Check if this helps.
TABLE FILE CAR
SUM DC 
BY COUNTRY 
ACROSS CAR AS ''
ON TABLE SET ASNAMES ON
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT
*
END



Thanks,
Ram
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Member
posted Hide Post
Thanks Ram, But with Same query, I am doing a Sorting order on Country, and specifically JAPAN at last column. Instead I am getting sort order value 'ZZ' and not JAPAN.

DEFINE FILE CAR
COUNTRY_SORT/A10 = IF COUNTRY EQ 'JAPAN' THEN 'ZZ' ELSE COUNTRY;
END
TABLE FILE CAR
SUM DC
BY CAR
ACROSS COUNTRY_SORT
ACROSS COUNTRY NOPRINT
ON TABLE SET ASNAMES ON
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT
*
END


WF-7703/7705
Windows, All Outputs
 
Posts: 4 | Registered: January 21, 2015Report This Post
Master
posted Hide Post
Check if this helps.

APP PATH IBISAMP

DEFINE FILE CAR
COUNTRY_SORT/A20 = IF COUNTRY EQ 'JAPAN' THEN 'ZZ' ELSE COUNTRY;
END
TABLE FILE CAR
BY COUNTRY_SORT NOPRINT
BY COUNTRY
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD FORMAT ALPHA
END
-RUN
?FF HOLD
-SET &COLUMN_NAME='';
-REPEAT LBL_1 &LINES TIMES;
-READ HOLD &COUNTRY.A10.
-SET &COLUMN_NAME = &COLUMN_NAME | ' ''' | &COUNTRY | '''';
-LBL_1
-TYPE &COLUMN_NAME
-*-EXIT
TABLE FILE CAR
SUM DC AS ''
BY CAR
ACROSS COUNTRY AS ''
ON TABLE SET ASNAMES ON
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE HOLD
END
-RUN
?FF HOLD

TABLE FILE HOLD
PRINT
&COLUMN_NAME
BY CAR
END
 
Posts: 542 | Location: Dearborn, MI | Registered: June 03, 2009Report This Post
Platinum Member
posted Hide Post
Maybe this helps.
See previous post
Applied to your example:
 SET ACROSSTITLE=SIDE
DEFINE FILE ibisamp/car
COUNTRY_SORT/A10 = IF COUNTRY EQ 'JAPAN' THEN 'ZZ' ELSE COUNTRY;
END
TABLE FILE ibisamp/car
SUM DC 
BY CAR AS ''
ACROSS COUNTRY_SORT NOPRINT
ACROSS COUNTRY AS 'CAR'
END 


WebFOCUS 8.2.06
 
Posts: 210 | Location: Sterling Heights, Michigan | Registered: October 19, 2010Report This Post
Virtuoso
posted Hide Post
quote:

...Instead I am getting sort order value 'ZZ' and not JAPAN.

...

TABLE FILE CAR
SUM DC
BY CAR
ACROSS COUNTRY_SORT
ACROSS COUNTRY NOPRINT
...


Of course "ZZ" appears, rather than "JAPAN". You have the NOPRINT on the wrong ACROSS.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     Title and data in same row for BY and ACROSS fields

Copyright © 1996-2020 Information Builders