Focal Point
Report Assistant help

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/2421036762

January 23, 2008, 07:48 AM
MattC
Report Assistant help
In the Selection Criteria is it possible to setup a constant or parameter to get data for 1 week, 2 weeks ago from current date?

I am a new to this.

I know I can put in a parameter for begindate and one for enddate that will prompt and end user for the dates, but I am looking to automate this report on a weekly bases using Report Caster.

Thanks for your help.


WebFOCUS 8.1.05
January 23, 2008, 09:13 AM
GinnyJakes
Use &YYMD as the current date. Then use function AYMD to subtract 14 days from the current date to get your begin date. Use &YYMD as your end date.
-SET &BEGDATE=AYMD(&YYMD,-14,'I8YYMD');
TABLE FILE filename
PRINT ...
WHERE FILEDATE GE &BEGDATE AND FILEDATE LE &YYMD
END  



Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google