BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sasowiczka123
Fluorite | Level 6

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

 

1 ACCEPTED SOLUTION

Accepted Solutions
sasowiczka123
Fluorite | Level 6

Oka, I found a better option: 

use this before importing csv file 

options validvarname=v7;

View solution in original post

4 REPLIES 4
sasowiczka123
Fluorite | Level 6
I tried this and this is the error:

ERROR 214-322: Variable name "Region with High_Risk ( 0 = no, 1=yes)" is not valid.

ERROR 23-7: Invalid value for the RENAME option.
sasowiczka123
Fluorite | Level 6

Oka, I found a better option: 

use this before importing csv file 

options validvarname=v7;

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1591 views
  • 1 like
  • 2 in conversation