I exported dataset from csv but some columns have " " in it som I'm trying to rename columns. I wrote this code:
data dane;
set dane3 ( rename=
(Region with High_Risk ( 0 = no, 1=yes)=. Region_High_Risk) );
run;
This is the error I get:
ERROR 79-322: Expecting a =.
Please help
Oka, I found a better option:
use this before importing csv file
options validvarname=v7;
For non-valid names, use "name literals":
'Region with High_Risk ( 0 = no, 1=yes)'n=Region_High_Risk
Oka, I found a better option:
use this before importing csv file
options validvarname=v7;
Run a proc contents on your dataset to determine your real column names.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.