It would be handy if SAS accepted date literals in ISO format:
and datetime literals:
'2018-04-04T08:34:25.678'dt (the "T" may be replaced by a blank)
in addition to the default DATE9. format.
It would indeed. I don't believe any of the literals have been updated in years.
I think that instead of
that a reference like
'2018-04-05'id or '2018-04-04T08:34:25.678'idt
to indicate that the user does indeed intend to use an ISO date literal might be a slightly better idea. Then the compiler actually has something to grab and use the correct algorithm.
Overloading a literal indicator sounds like a coding nightmare. And since we see enough examples of people attempting to misuse the current date, datetime and time literals I'm not sure that I want spend more time explaining why date literals in all the other forms attempted aren't valid.
Good and valid idea, @ballardw!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.