hello, i'm trying to use a subsetting to filter a dataset. I imported a .csv file into SAS. import worked as expected, but when I try to filter the dataset using the following: length Industry_classification_code $10; Industry_classification_code = 'Industry classification code'n; if length(trim(Industry_classification_code)) = 6; My dataset is get created without any rows. I checked my dataset before the if statment. Even did a proc freq, the values are there. 'Industry classification code'n is a numeric variable values look like: 92000 92011 529983 674552 I'm trying to keep rows where there are six digits in the variable, like the last two rows above. Something is wrong, not sure what. Any assistance would be greatly appreciated.
... View more