Command of the day, 4-May-2007
$ ... f$fao("!%D",0)
The trick here being that you need to include the 0 (zero)! f$fao("!%D") is nonsensical!
two comments:
but isn’t that the same as F$TIME ?
[imiller] (URL) - 04-May-2007 - 16:16
Yes, but it can be used within an FAO directive for structured output. Using f$time() means you’ve got to do symbol substitution to get the output; although performance-wise they’re about the same, I find it esthetically more pleasing to use a built-in directive. There is no other equivalent to using the ”!%T”, for example.
I just wonder why we have to pass a 0 as a parameter, when that’s the only value it can take (DCL does not implement quadwords, which is what that directive expects.) Unless someone once upon a time thought ahead to the day when we might get that! (Ah, the joys of an architected and planned out system! Someone was thinking ahead!)
Aaron () (URL) - 04-May-2007 - 17:07
No trackbacks: