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.
Scott Barry
SBBWorks, Inc.
Suggested Google advanced search argument, this topic / post:
batch program source sysin option site:sas.com