Reputation: 1
I want to make permanent changes is the variable name Fclass and label Date as Departure date. i have used the modify statement along with rename but I am getting error when I am running the program.
proc datasets library= ia;
modify passngrs;
rename FClass= First Class;
label Date='Departure date';
format Date date9.;
run;
Upvotes: 0
Views: 53
Reputation: 27498
You might want to do any of these:
rename FCLASS = FirstClass;
options validvarname=any;
proc ...;
...;
rename FCLASS = 'First Class'N;
FCLASS
instead of renaming itlabel FCLASS = 'First Class';
Upvotes: 1