BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Rhicks58
Calcite | Level 5

Hello SAS community.  I am a beginner using SAS studio and I am trying to get my simple excel spreadsheet variables to be accepted and processed by the program when I hit the run button.  My variables come back as errors in the log.

Rhicks58_0-1667740060325.png

 

 

This is my SAS Work.Import file.

Rhicks58_1-1667740060734.png

 

I tried to use the Code 08a Correlations file:

Rhicks58_2-1667740061077.png

 

This is what comes back in the log.

Rhicks58_3-1667740061565.png

 

What can I do to clear up the errors?  Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

There are no underscores in the variable names. Apparently you have set the SAS option VALIDVARNAME to ANY, and so variable names have spaces in them. To refer to variable names with spaces, you would use, for example: 'Number of Vehicles'n

--
Paige Miller

View solution in original post

4 REPLIES 4
PaigeMiller
Diamond | Level 26

There are no underscores in the variable names. Apparently you have set the SAS option VALIDVARNAME to ANY, and so variable names have spaces in them. To refer to variable names with spaces, you would use, for example: 'Number of Vehicles'n

--
Paige Miller
Rhicks58
Calcite | Level 5
This is what I ran using your instructions;

This is what showed up in the error log this time;

Rhicks58
Calcite | Level 5

This is what I ran using your instructions;

Rhicks58_0-1667741987858.png

 

This is what showed up in the error log this time;

Rhicks58_1-1667741988236.png

 

Rhicks58
Calcite | Level 5
I was missing the (') in front of the variable as you said. It went through with no errors. Thanks a lot!