I have created a excel workbook and have schedule in report caster and want to distribute it with today's date and time as part of it name. Is this possible? ThanskThis message has been edited. Last edited by: Kerry,
WebFOCUS 7.7.1 Windows 2000 Output: Excel and PDF
September 07, 2009, 02:23 AM
Tony A
Not directly within catser. However, you could write the output to a network file named as you require, and then use something like CDONTS to distribute it for you.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
September 08, 2009, 08:45 AM
<JG>
If the job is run on a standard schedule where you know what the next run date is just update the BOTTASK table
it can be added as a post-processing procedure
MODIFY FILE BOTTASK FREEFORM TASKID PACKETID ASVALUE MATCH TASKID PACKETID ON MATCH UPDATE ASVALUE ON NOMATCH REJECT DATA 'taskid','paketid','fred&YYMD.EVAL.XLS',$ END -RUN
September 08, 2009, 03:46 PM
DaveZ
does the paketid change? if i run this daily what prevents me from updating all prior versions with today's date
WebFOCUS 7.7.1 Windows 2000 Output: Excel and PDF
September 08, 2009, 04:45 PM
j.gross
No, it's part of the primary key.
- Jack Gross WF through 8.1.05
September 08, 2009, 06:17 PM
DaveZ
Thanks for the help, I'm close but I get a nomatch here is the message, the code I'm using and a sql statement that finds it
MODIFY FILE BOTTASK FREEFORM TASKID PACKETID ASVALUE MATCH TASKID PACKETID ON MATCH UPDATE ASVALUE ON NOMATCH REJECT DATA 'T14e3fieq801','P14e3fs6ec02','ssbo_toc_line_data_&MDYY.XLS',$ END -RUN
I can find it by using the following sql statement: select t.*, t.rowid from bottask t where taskid = 'T14e3fieq801' and packetid = 'P14e3fs6ec02'
WebFOCUS 7.7.1 Windows 2000 Output: Excel and PDF
September 08, 2009, 08:17 PM
j.gross
This doesn't address your current problem, but the one in the wings:
What you have echoes as
... DATA 'T14e3fieq801','P14e3fs6ec02','ssbo_toc_line_data_09082009XLS',$ END
(The . after &MDYY is taken as a delimiter, if what follows is not an attribute keywork such as LENGTH or EXISTS.) To make ".XLS" part of the resolved value, add a vertical (or another period) before ".XLS".