<rant>
Do NOT use the "any" informats. They will try their "best" to make dates or times out of all kinds of crap that has no right to exist in the first place, with (at best) hilarious results.
</rant>
Having said that, you get very nice timestamps in ISO 8601 format, so you positively should use the E8601DT informat.
Since SAS won't process dates before 1582 (the introduction of the Gregorian calendar), you only need to create a mechanism for date(time)s before that. With DB/2, 0001-01-01 is the default value for date columns that can't be missing. When we import such dates into SAS, we set them to missing. Other dates might have special meanings as defined in your organization. We have special timestamps in the years 900-999 that signal data that was migrated from an old system; for SAS, we replace the "09" at the beginning with "17", as we can be sure none of our customers is that old, or will have a claim from back then 😉
So you best read your values as character first, make the necessary adjustments, and then convert to a SAS datetime with the INPUT function and the E8601DT informat, or set a missing value explicitly.
... View more