Hi,
Can someone please help me to reference a numeric variable when the variable name is mix of letters and numbers? Thanks!
Variable name: TEST10
Type: Numeric
Group: Numeric
Current code:
proc print data=test;
var TEST10;
sum TEST10;
run;
What is the question?
Hi Tom,
I have checked that there is a TEST10 variable in the 'test' dataset (the Name is TEST10 and there is no label to the variable) but there is an error when I run the code - 'ERROR: Variable TEST10 not found' so is there a way to correctly reference the numeric variable, despite the name being a mixture of characters and numbers?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.