You basically have to issue a command to the OS to get the information you need (i.e. creation date). So first thing you're doing is to open a command window (for Windows or UNIX - whatever your server environment is ) and get the command right. You then use either "filename ... pipe" or an "X" command from within SAS to send the "OS" command and retrieve the result for further processing. There are several examples in the SAS doc and in SAS notes of how to do this.
The one thing you should check first is if you're allowed to issue OS command from an EG session. Execute "Proc Options; run;" and then look in the log for "XCMD". If the value is "NOXCMD" (that's the installation default) then you've got a problem because EG won't allow you to issue OS commands. You then would have to talk to your SAS admin first.
Here's a (slightly modified) piece of code that I use in EG on XP. It uses the SAS "External Files" functions to find the files in a directory. I only need the filename, but there's an "FINFO" function that you can probably use to get date information.
length infref $ 64;
do i = 1 to dsncount;
infref = dread(htmld,i);