This would avoid having to translate characters when using a time stamp inside a file name.
Is there any special reason not to use a simple picture format created with the date and time directives?
There are many ways to do things. Simpler is better, especially now that EG is supposed to be for programmers. Dates have custom delimiters, times could use them too.
Pardon me, unfamiliar with the limits of EG, it is functionality I thought already available.
Has anyone tried the informat hunter on this?
Nothing to do with EG, the EG reference was was just a cheap shot at the EG-for-programmers nonsense. The suggestion is just an easy improvement using a standard feature already used in the date formats.
sounds like time i did a bit of re- rtfm
I thought the only flexibility was in choosing a different format, and with proc format picture directives the requested format would be extremely simple.
easy is in the eye of the beholder. When most users still can't convert a string to a number, translate or picture are not really the preferred method.
anyway, this is a trivial enhancement, no need to discuss it for pages.
Or, since you mentioned timestamps, for date-times try b8601dt.
And try Peter's %now() macro, which I shamelessly blogged about with attribution but without permission (hopefully fair since he was kind enough to write a paper about it):
My blog post:
His paper on %now:
I know there are other ways, that's not the point.
There is always a way, so by this logic no improvement is worth asking for.
And B8601TM has no delimiters.
Dates have custom delimiters, times could use them too. That's all.
Anyway, last comment from me on that trivial topic.
Actually, having slept over it, I find people's reactions strange.
Instead of discussing the proposal, they explain how to live without the suggestion.
I suppose the same people would have opposed the cat() functions because || and trim() and left() exist?
Why ever propose to enhance the language at all since there is always a way to do things with sas?
I am puzzled.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.