You have not bothered to describe the data at all. How many of those columns are numeric ? How many are character?
How do you want to describe "duplicate"? Add a variable to the data? If so, what values should it take?
Or subset the data set?
If the values of variables are all numeric then the RANGE function MIGHT be the easiest approach:
data junk;
set have;
array v(*) <your variables go here>;
if range(of v(*))=0 then <do whatever you want when all the same>;
run;
However, if you have mixes of missing values and actual values that would require adding a check that the nonmissing values equal the number of variables (i.e. the N function).
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.