SAS Data Integration Studio, DataFlux Data Management Studio, SAS/ACCESS, SAS Data Loader for Hadoop and others

how to rename datafile

Accepted Solution Solved
Reply
Contributor
Posts: 29
Accepted Solution

how to rename datafile

Hello guys,

I use this code:

proc means data= 111; 

by mean;

output;

run;

the result file will come out named "data 1",  but I want it named as " aapl_means". What should I do?


Accepted Solutions
Solution
‎10-30-2017 01:58 PM
Super Contributor
Posts: 479

Re: how to rename datafile

You need output out= as in this example

 

proc sort data=sashelp.class out=class;
	by sex;
run;

proc means data=class; 
	by sex;
	output out=classtat;
run;

View solution in original post


All Replies
Solution
‎10-30-2017 01:58 PM
Super Contributor
Posts: 479

Re: how to rename datafile

You need output out= as in this example

 

proc sort data=sashelp.class out=class;
	by sex;
run;

proc means data=class; 
	by sex;
	output out=classtat;
run;
PROC Star
Posts: 965

Re: how to rename datafile

use output out=aapl_means statement in your MEANS Procedure.

Super User
Posts: 20,731

Re: how to rename datafile

RTM - Specifically, the OUTPUT statement.

☑ This topic is solved.

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

Discussion stats
  • 3 replies
  • 165 views
  • 0 likes
  • 4 in conversation