Hi,
I want to create a out file along with yyyymmddhhmmss.
Could someone help on this ?
Example : filename_yyyymmddhhmmss.txt
The closest format I know to that is B8601DT, but it includes a T between the date and the time. You could strip that out.
%let now = %sysfunc(compress(%sysfunc(datetime(),b8601dt.),T));
filename want "/folders/myfolders/mydata_&now..txt";
Where is the datetime value supposed to come from?
The closest format I know to that is B8601DT, but it includes a T between the date and the time. You could strip that out.
%let now = %sysfunc(compress(%sysfunc(datetime(),b8601dt.),T));
filename want "/folders/myfolders/mydata_&now..txt";
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: