04-13-2016 11:30 PM
I am a bit confused... I know how to find the middle number in a numerical data set, however if I decide to use character variables, I am getting missing values in output.
04-13-2016 11:38 PM
Use nobs= to get the number of obs. Get the mid obs with point= option :
data test; do txt = "abc","def","ghi","jkl","mno"; output; end; run; data mid; if 0 then set test nobs=n; n = ceil(n/2); set test point=n; output; stop; run;