@urban58 wrote:
(...) techid did not sort properly except for the latest timeperiod.
There is something with my data which I'm trying to understand.
One common reason for strange, unexpected sort orders are blanks or other invisible characters in character variables. Is techid a character variable (according to PROC CONTENTS output)? And, if so, what is the defined length of the variable (again: see PROC CONTENTS output)? Does techid have hundreds of different values or would it be feasible to review a PROC FREQ output showing the distinct values?
What does the improper sort order look like, compared to the proper sort order in the latest timeperiod? Can you show us the relevant portion of your PROC MEANS output or even a sample of your data so that we can reproduce the issue? Obviously, the analysis variables (var1, var2) are irrelevant and can be omitted.
... View more