the answer to your question is NO
It would be possible, if the programmer of the process creating the data set, took the trouble to add that information to (the label of) the data sets created, but that seldom happens in my experience.
While you are running SAS programs in "batch" from a "SYSIN" source (depends on your SAS session/environment though), consider that there is current-environment information available, if you wanted to do something with that. Your interest/purpose is unclear, based on your post -- so what would you with the info and when would you want to know about the "event"??
Mostly you will find info about the SYSIN option in the particular SAS companion guide for your Operating System.
Suggested Google advanced search argument, this topic / post:
Ah, yes, aaaaah remember it well!
(almost a song)
And as you say, the final step in the history would be a sort
- but in an early release the last "n" steps were kept where that "n" was a history option which we set option history= 7 so the seven latest steps writing the table were available.
I guess it might need a very large header to keep enough versions for everyone!