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] Retrieve last 30 calendar days and compare it with recent activity date

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Retrieve last 30 calendar days and compare it with recent activity date
 Login/Join
 
Member
posted
SL active= SLRecentActivityDate >= last 30 days and SLLockedOutFlag = ‘N’

I need to find the number of active employees. The logic behind that is the recent activity date should be greater than or equal to the last 30 calendar days and Lockeoutflag equal to N.

The master file contains SLRecentActivity Date and SLLockedOutFlag fields.

How to compare the recentactivity date (HYYMDI) gretaer than or equal to last 30 days?

This message has been edited. Last edited by: FP Mod Chuck,


WEBFOCUS, WINDOWS, REPORTS
 
Posts: 14 | Registered: May 07, 2018Report This Post
Virtuoso
posted Hide Post
You need to set current date and then subtract 30 days from it. Then compare your Activity Date with this new value. Start with this:

  
-SET &CURDATE=&YYMD;
-SET &PAST30D=AYMD(&CURDATE,-30,'I8YYMD'); 


Then in your report make sure activity date GE &PAST30D


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Expert
posted Hide Post
Checkout DATEADD
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Platinum Member
posted Hide Post
you can calculate the last 30th day's date and then put your where clause on date field,

where date Ge last 30th date and date LT current date


WF Production :- WF:8.0.0.4, 8.1.05 App-studio/Developer Studio(8.1.x) ,
8.2.0.1M , 8.2.0.2 (App-Studio8.2.x),
InfoAssist/+, InfoDiscovery
Output format:-AHTML, PDF, Excel, HTML
Platform:-Windows 7, 8,10
 
Posts: 186 | Location: Infobuild India | Registered: August 28, 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] Retrieve last 30 calendar days and compare it with recent activity date

Copyright © 1996-2020 Information Builders