Don't if this will help but it could give you an idea:
-* Set the Start and End date for QUARTER.
-* Default date is yesterday.
-SET &DT = AYMD(&YYMD,-1,'I8');
-* Change value to work with date manipulation.
-SET &TIME_BACK = &TIME_BACK * 3;
-SET &TIME_DURA = (&TIME_DURA - 1) * 3;
-* Produce the end date and start date.
-SET &END_YYMD = DATECVT((DATEMOV(DATEADD((DATECVT
- (&DT,'I8YYMD','YYMD')),'M',-&TIME_BACK),'EOQ')),'YYMD','I8YYMD');
-SET &START_YYMD = DATECVT((DATEMOV(DATEADD((DATECVT
- (&END_YYMD,'I8YYMD','YYMD')),'M',-&TIME_DURA),'BOQ')),'YYMD','I8YYMD');
-RUN
November 17, 2005, 12:55 PM
Francis Mariani
Thanks!
I didn't realize that a DEFINEd function could be used in Dialog Manager - wonders never cease!
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
November 17, 2005, 02:03 PM
Prarie
The Documentation States it doesn't. hmmmThis message has been edited. Last edited by: Prarie,
In Focus since 1993. WebFOCUS 7.7.03 Win 2003
November 30, 2005, 08:57 AM
<Jeff T>
Thanks. The Documentation will be corrected. The following will be removed from the Creating Reports With WebFOCUS Language manual: "You cannot call DEFINE functions from Dialogue Manager commands."
November 30, 2005, 11:28 AM
N.Selph
And here I never used it, because I only saw a use for it in DM!