I have created a sas data named tables.Q3 from an excel file containing hundreds of thousands of observations. I would like to now extract specific observations that satisfy one condition in 1 variable and another condition in the other and print those data sets. I first sorted the data set by one variable using: PROC SORT DATA=tables.Q3 OUT=tables.Q4; BY start_position; RUN; this produced a sas data set that sorted the start_code (which is a numeric) variable. I want to now print from the dataset tables.Q4 a table that will only include those observations that satisfy start_position=5000 and variable 2 (which is a datetime variable in the form of DDMMMYYY HH:MM:SS) as one specific date (i.e 20OCT17). Thanks in advance for the help.
... View more