1) Don't use ddMONyyyy format for a date stamp in a filename. It will not sort properly. Use YYYYMMDD. Although I agree, the client specifies the date format, I have no leeway to change it. 2) You cannot use colon (;) in a filename on a Windows drive since it is reserved for drive letter prefixes. Makes sense and explains why formats with a colon were rejected. 3) Do you want the date/time that SAS started (ie &SYSDATE9 and &SYSTIME) or the current time (datetime(), or date() and time() function calls)? They want the time the file was created. 4) Do you want to include the date/time in both the XPORT filename and the member name? I don't know what this means - as I said, I have very limited experience with SAS. 5) Your first data step has no actual code. These are just the lines in the template script I was given that make use of the date. I figured they all needed to be changed to include the time as well. 6) You do not have any code to actually create the XPORT format version of the dataset. That code is in the template script that I was given. The lines of code I provided are only the ones that use the date. I was told to modify them all to have the date and time. I'll give your code a try and see if I can get it working in the context of what got dropped in my lap. Thanks!
... View more