SAS code check whether one variable has more than 200 characters
You can use the LENGTH function in SAS to check the length of a variable or string. To check whether a variable has more than 200 characters, you can use the following code:
data check_length;
set your_dataset; /* Replace 'your_dataset' with the name of your dataset */
if length(your_variable) > 200 then do;
/* Do something if the variable has more than 200 characters */
/* For example, print the observation */
put your_variable;
end;
run;
Replace 'your_variable' with the name of the variable you want to check. The code will output the value of the variable if it has more than 200 characters
原文地址: https://www.cveoy.top/t/topic/iQFe 著作权归作者所有。请勿转载和采集!