Help using Base SAS procedures

How to rename a data set

Reply
Frequent Contributor
Posts: 75

How to rename a data set

Hello all -

how can I rename an actual data set (not the variables) without creating a copy of the data set and then naming it, so for example I have dataset1 and want to call it dataset2 without doing this:

data dataset2;
set dataset1;
run;

Is there a function for this?

Geo
PROC Star
Posts: 7,468

Re: How to rename a data set

Minimally, you can use either the x (or other) system command, or proc datasets. Both uses are described in the following paper:

http://www.nesug.org/proceedings/nesug03/hw/hw006.pdf

HTH,
Art
Super Contributor
Posts: 281

Re: How to rename a data set

look at the CHANGE command of PROC DATASETS
Ask a Question
Discussion stats
  • 2 replies
  • 115 views
  • 0 likes
  • 3 in conversation