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     [SOLVED] Limiting Columns Displayed in ACROSS Command

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Limiting Columns Displayed in ACROSS Command
 Login/Join
 
Member
posted
I'm trying to create a simple report with yield curves shown in each column. I'd like to limit the report to the five most recent yield curve dates in my source file. When I try to limit the number of columns shown in the ACROSS command, WebFocus gives me a FOC 1974 warning saying that it cannot process the limit in the ACROSS command. Any ideas for a workaround?

Thanks in advance for any help.

Here is the code:
DEFINE FILE VOYA_PAR
MONTH/I4 = DATEDIF(ASOF_DATE, DATE, 'M');
END
TABLE FILE VOYA_PAR
SUM VOYA_PAR.VOYA_PAR.USD_FITTED/D8.6
BY LOWEST MONTH
ACROSS HIGHEST 5 VOYA_PAR.VOYA_PAR.ASOF_DATE
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END

This message has been edited. Last edited by: Glenn@VoyaIM,


WebFOCUS 8
Windows, All Outputs
 
Posts: 7 | Location: Atlanta, GA | Registered: April 01, 2015Report This Post
Virtuoso
posted Hide Post
Do it in two passes. Get your Data by Highest 5 and hold it in a file. Then do the across with the hold file.
 
Posts: 1903 | Location: San Antonio | Registered: February 28, 2005Report This Post
Member
posted Hide Post
Prarie,
Thanks very much for the suggestion.


Here's the code that ended up working:
DEFINE FILE VOYA_PAR
MONTH/I4 = DATEDIF(ASOF_DATE, DATE, 'M');
END
TABLE FILE VOYA_PAR
SUM VOYA_PAR.VOYA_PAR.USD_FITTED
BY HIGHEST 5 ASOF_DATE
BY LOWEST MONTH
ON TABLE HOLD AS VOYA_PARX
END
TABLE FILE VOYA_PARX
SUM USD_FITTED/D8.6
BY LOWEST MONTH
ACROSS HIGHEST ASOF_DATE
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET ASNAMES ON
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
$
ENDSTYLE
END


WebFOCUS 8
Windows, All Outputs
 
Posts: 7 | Location: Atlanta, GA | Registered: April 01, 2015Report 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     [SOLVED] Limiting Columns Displayed in ACROSS Command

Copyright © 1996-2020 Information Builders