BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
alveed01
Calcite | Level 5

Hi All,

I am trying to export (by proc export) an archive with the name in this file has a SYSTIME.

 

For ex:

PROC EXPORT DATA= grupo
OUTFILE= "&rote\HORA_&SYSTIME"
DBMS=EXCEL REPLACE;
SHEET="Utilizar_esse";
RUN;

But the problem is Windows dont recognize the name file results, because generates a special caracter in the name (colum):

c:\temp\Hour_10:57.XLS

 

So, the sas log file indicates to me that the file was succedes generate but is not real when I see in the Windows Explorer. 

 Can someone help me please?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
art297
Opal | Level 21

I'd just wrap the systime macro variable in a call to the translate function (see: http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000215153.htm) changing the colon to an underscore.

 

Art, CEO, AnalystFinder.com

View solution in original post

1 REPLY 1
art297
Opal | Level 21

I'd just wrap the systime macro variable in a call to the translate function (see: http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000215153.htm) changing the colon to an underscore.

 

Art, CEO, AnalystFinder.com

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1329 views
  • 1 like
  • 2 in conversation