You can force order of variable by entering a statement next to DATA statement,
either:
data <output>;
retain <list of variables in desired order);
.....
run;
or:
data <output>;
format <ordered list>; /* without assigning formats */
thus, by mentioning the variable names as first statement, the output should be in same order.
... View more