An Idea Exchange for SAS software and services

by Valued Guide
on ‎05-01-2013 07:28 PM

Is there any special reason not to use a simple picture format created with the date and time directives?

by PROC Star
on ‎05-02-2013 02:16 PM

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.

by Valued Guide
on ‎05-02-2013 02:50 PM

Pardon me, unfamiliar with the limits of EG, it is functionality I thought already available.

Has anyone tried the informat hunter on this?


by PROC Star
on ‎05-02-2013 05:50 PM

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.

by Valued Guide
on ‎05-02-2013 09:13 PM

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.

by PROC Star
on ‎05-03-2013 01:03 AM

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. Smiley Happy

by Valued Guide
on ‎05-03-2013 12:51 PM

try format


by PROC Star
on ‎05-03-2013 01:52 PM

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:

by PROC Star
on ‎05-16-2013 11:16 PM

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.

by PROC Star
on ‎05-20-2013 08:58 PM

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.

Idea Statuses
Top Liked Authors