[Info-vax] how to do a search for just today's info
rdpiccard at gmail.com
rdpiccard at gmail.com
Wed Jan 28 14:34:29 EST 2015
On Wednesday, January 28, 2015 at 1:45:05 PM UTC-5, Stephen Hoffman wrote:
> On 2015-01-28 17:59:51 +0000, pcoviello said:
>
[snip]
>
> OK. If those assumptions of mine are correct, then this should get you
> close to where you want:
>
> $ slashes = f$cvtime(,,"MONTH") + "/" + f$cvtime(,,"DAY") + "/" +
> f$extract(2,2,f$cvtime(,,"YEAR"))
> $ show symbol slashes
> SLASHES = "01/28/15"
> $
>
> This probably used with something like the following command:
>
> $ PIPE SEARCH sys$scratch:cconsole.tmp today | search sys$pipe
> "''slashes'" /output=sys$scratch:cconsole-today.tmp
>
> If you're using a crappy font, that's a vertical bar in there, and then
> there's a double quote, and two single quotes, the symbolname slash, a
> single quote, and a double quote.
>
> The quoting is used as DCL treats the slash as a special character.
>
> #########
>
[snip]
>
>
> --
> Pure Personal Opinion | HoffmanLabs LLC
A possible corner case: if the command
$ slashes = f$cvtime(,,"MONTH") + "/" + f$cvtime(,,"DAY") + "/" +
f$extract(2,2,f$cvtime(,,"YEAR"))
is executed so as to span from before to after the stroke of midnight at the end of the last day of a month (or year), might it produce misleading results? In other words, do each of the f$cvtime executions take the then-current time, or is the time when the first one executes used by all?
More information about the Info-vax
mailing list