Help using Base SAS procedures

Name dataset as today's date

Accepted Solution Solved
Reply
Super Contributor
Posts: 259
Accepted Solution

Name dataset as today's date

I want to name a dataset as today's date. I know you can name a variable within a dataset as today's date useing the today() function but how can you name a file using today's date.

My dataset is called Reconciliation

I want something like this:

Reconciliation20140709 or Reconciliation_20140709

Many thans


Accepted Solutions
Solution
‎07-09-2014 04:59 AM
Super User
Super User
Posts: 7,955

Re: Name dataset as today's date

Hi

data Reconciliation%sysfunc(today(),date9.);

     set sashelp.cars;

run;

View solution in original post


All Replies
Solution
‎07-09-2014 04:59 AM
Super User
Super User
Posts: 7,955

Re: Name dataset as today's date

Hi

data Reconciliation%sysfunc(today(),date9.);

     set sashelp.cars;

run;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 1 reply
  • 238 views
  • 0 likes
  • 2 in conversation