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] &DATEMtr + 1

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] &DATEMtr + 1
 Login/Join
 
Master
posted
hi

&DATEMtr gives the name of current month.
how could I get the next two month names which means september and october?

thank you

This message has been edited. Last edited by: Kerry,


8.1.05
HTML,PDF,EXL2K, Active, All
 
Posts: 484 | Registered: February 03, 2009Report This Post
Virtuoso
posted Hide Post
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, 2007Report This Post
Expert
posted Hide Post
quote:
SET TESTDATE


Wow, Another new thing learned today.

This will be very useful.

Good One


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Platinum Member
posted Hide Post
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. Smiler

It is also useful doing cycle checking etc.


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Report This Post
Virtuoso
posted Hide Post
Great tip Dan.

Oh man, this would have been so useful in a few past cases where I needed to simulate something silly with a whole bunch of amper variables.

Better late than never! and as Waz clearly predicted this will be very useful indeed.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Expert
posted Hide Post
Interesting....

I wasn't told about it when I was doing Y2K stuff, and I was working for IBI at the time.

Frowner


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Virtuoso
posted Hide Post
I remember that one.

It's probably mentioned on Compuserv.

-jack
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
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".

Thanks Dan for the tip.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report 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] &DATEMtr + 1

Copyright © 1996-2020 Information Builders