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.
Try this, but make certain you set it back to TODAY when you are finished:
SET TESTDATE = 20110901
-RUN
-TYPE &DATE
-TYPE &DATEMtr
-*
SET TESTDATE = 20111001
-RUN
-TYPE &DATE
-TYPE &DATEMtr
-*
SET TESTDATE = TODAY
-RUN
-TYPE &DATE
-TYPE &DATEMtr
P.S.: The persistence of SET TESTDATE spans only the current WF server session, which means it will not affect subsequent jobs that you may run. It is a nice tool for testing date-sensitive programs without having to alter the code because it allows the developer to set the "system" date to any year, month, and day.This message has been edited. Last edited by: Dan Satchell,
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
TESTDATE was IBI gave us to help get ready for the new millennium. You could test like it was next century, and be sure ready for the Y2K bug to strike.
It is also useful doing cycle checking etc.
Jim Morrow Web Focus 7.6.10 under Windows 2003 MVS 7.3.3
The day finally came to test the wonders of SET TESTDATE and it does help a lot.
I had to test different day-based scenarios and was trying to fake silly dates in &variables for each case but the code was looking ugly and I knew I needed to set it back to &YYMD eventually as that's how it's intended to work going to Production. I then remembered reading something about TESTDATE before here at Focal Point, came looking, found it, used it and it really made it a breeze to test my different scenarios while still keeping &YYMD as my "base date".