Can you change time stamp written when Calc Fails?

Discussion created by ccheno on Nov 17, 2011
Latest reply on Nov 17, 2011 by michaelh

I have some monthly environment calc's that the HSE folks wanted time stamped at the beginning of the month the calc if for (ie: Total data from 1-Oct-11 thru 1-Nov-11 and output the result with a time stamp of: 1-Oct-11 00:00:00).


What I'd like to be able to do, is if/when the calc fails, to write "Calc Failed" at 1-Oct-11 00:00:00 rather than at run time 1-Nov-11 00:00:00 (default behavior).


I've figured out the syntax for first-of-previous-month that I use when writing "good" calc output:  OutputTotal.value(PrevMonDay1). So I have a variable to pass. Just don't know how.


Can this be done? If yes, could you please provide example code of how to do it.


Thanks, Cory