I have a column name which calles int'l that I want to assign a standard name literal.
I tried to put a single quatotion mark with a letter n like 'int'l'n, but it was still not allowed in the data set.
Can anyone guide me on this?
You can't use single quotes to quote partial single quote, SAS will be confused. Try double quotes:
options validvarname=any;
data test;
input "int'l"n $;
cards;
test
;
run;
You can't use single quotes to quote partial single quote, SAS will be confused. Try double quotes:
options validvarname=any;
data test;
input "int'l"n $;
cards;
test
;
run;
Not sure how your using it, you can look at NLITERAL() function.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.