As far as I know you can use an integer variable in place of a day number in your scans.
The following shows a scan for correlating a day number with a date. It does it by making a list of day numbers and dates. You need to choose a start number and end number that brackets your date. . Input = "sample.lst"; Output = "results.lst"; DaysToLoad(300); DaysRequired(300); Integer Start; Integer End; Start := 135; End := 125; Integer i; For i = -Start to -End step 1 Do Println Symbol, ", ", i , ", ", Date(i); next i; Howard orrincsjr wrote: > > Hmmm. Now that I know I cannot user a "real" date in a Scan, is > there a way I can use a surrogate in the Scan and only have to change > the value of the surrogate? For example, maybe I could use "OSDate" > in each statement when the day number would appear. Then if I set > OSDate equal to a negative numeric value, the net effect would be the > same as if I had coded the negative number itself. I am just trying > to diminish the number of places I need to plug the date number. > > --- In [email protected] > <mailto:quotes-plus%40yahoogroups.com>, "Howard R. Hansen" <[EMAIL PROTECTED]> > wrote: > > > > The short answer is no. > > > > Howard > > > > orrincsjr wrote: > > > > > > I want to execute a scan as of a particular date in the past, for > > > example uly 7, 2006. I know that I can somehow calculate the > number of > > > days back from today (whatever today is) and use it in the scan. > But > > > tomorrow I would have to change the scan with another "number of > days" > > > back. Is there a way to reference a specific date in a scan? > > > > > > > > > > > > >
