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] pass time as report parameters

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] pass time as report parameters
 Login/Join
 
Gold member
posted
Hello,

I have a request where rejected payments need to be monitored and alert the users.
Once a payment is rejected, it will be time stamped in the database.

I need to schedule a report every 10 minutes that checks for rejected payments.
The report should run every 10 minutes and bring in data that populated only in those 10 minutes.

Passing current date as a parameter for the report will keep bringing the old data along with the new data.

Any suggestions on how this can be done.

Thanks in advance.

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


WebFOCUS 7.7.02Windows
Output Formats: Excel, HTML, PDF
 
Posts: 82 | Registered: February 23, 2011Report This Post
Virtuoso
posted Hide Post
You already have defined all the elements that you need :

1- A date/time parameter from current date-time where you will substract 10 minutes
Take a look at
Simplified Date and Date-Time Functions
Date-Time Functions
2- Create a report filtered using above field
3- Create a schedule (RC) that will execute every 10 minutes


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Platinum Member
posted Hide Post
Something like this ...

-*
-SET &CURR_DTS_HYYMDS = HGETC(8, 'HYYMDS');
-SET &CURR_DTS        = HCNVRT(&CURR_DTS_HYYMDS, '(HYYMDS)', 20, 'A20');
-SET &END_DTS         = EDIT(&CURR_DTS, '99999999999999999') | '59';
-*
-SET &PREV_10M_HYYMDS = HADD(&CURR_DTS_HYYMDS, 'MINUTES', -10, 8, 'HYYMDS');
-SET &PREV_10M_DTS    = HCNVRT(&PREV_10M_HYYMDS, '(HYYMDS)',20,'A20');
-SET &BEG_DTS         = EDIT(&PREV_10M_DTS, '99999999999999999') | '00';
-*
-TYPE -----------------------------------------
-TYPE CURR_DTS ------------ &CURR_DTS
-TYPE PREV_10M_DTS -------- &PREV_10M_DTS
-TYPE -----------------------------------------
-TYPE BEG_DTS ------------- &BEG_DTS
-TYPE END_DTS ------------- &END_DTS
-TYPE -----------------------------------------
-TYPE WHERE YOUR_DATE GE DT(&BEG_DTS) AND YOUR_DATE LE DT(&END_DTS);
-TYPE -----------------------------------------


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Virtuoso
posted Hide Post
Simplified functions are more simple to used
DEFINE FILE WF_RETAIL_LITE
CURRDATE /HYYMDs WITH COUNTRY_NAME = DT_CURRENT_DATETIME(SECOND);
DATEH_10 /HYYMDs = DTADD(CURRDATE, MINUTE, -10);
END
TABLE FILE WF_RETAIL_LITE
SUM CURRDATE
    DATEH_10
ON TABLE SET PAGE NOPAGE
END


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Gold member
posted Hide Post
Thanks a lot for the replies. It helped a lot.


WebFOCUS 7.7.02Windows
Output Formats: Excel, HTML, PDF
 
Posts: 82 | Registered: February 23, 2011Report 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] pass time as report parameters

Copyright © 1996-2020 Information Builders