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     [CLOSED] Adding filter in master files for current year / month / quarter

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Adding filter in master files for current year / month / quarter
 Login/Join
 
Member
posted
Hi,
I am new to Web Focus. How can I set up a filter in master file to get current year , current Month and Current quarter.

Thanks

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 3 | Registered: September 12, 2014Report This Post
Expert
posted Hide Post
Firstly, you do not state which version or platform that you are using. Please add this to your signature (follow the link under forum guidelines above).

Assuming that you're on a recent version, ensure you understand the use of filters within a synonym (master file). link to documentation search for master file filter.

You will need to have some global variables setup in a server profile or similar.

A suggestion for the global variables is -
-SET &&CURMONTH = DPART(DATECVT(&YYMD, 'I8YYMD', YYMD), 'MM', 'I11');
-SET &&CURQTR   = DPART(DATECVT(&YYMD, 'I8YYMD', YYMD), 'QQ', 'I11');
-SET &&CURYEAR  = DPART(DATECVT(&YYMD, 'I8YYMD', YYMD), 'YEAR', 'I11');


Next you will need to get these global variables available to use in your synonym, so you will need to add them in via the GUI - in Dev Studio the icon looks like a blue speech bubble with a white V.

Good luck

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report 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     [CLOSED] Adding filter in master files for current year / month / quarter

Copyright © 1996-2020 Information Builders