hi guys ...i have one query...
data abc;
input s w k g o t a m;
cards;
1 2 3 4 5 6 7 8
2 3 4 5 6 7 8 9
;
run;
i want the output to be the sorted order(only
variables).observations should not be changed..
Answer Posted / jose av
No need of doing Tedious codes, just use those variables in
the alphabetical order in a LENGTH statement before setting
(before set statement) .Try this..
data abc_01;
length a g k m o s t 3.;
set abc;
run;
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
What is run-group processing?
What is the difference between where and if statement?
what is treatment emergent events and treatment emregent adverse event
What is the use of function Proc summary?
Mention few capabilities of sas framework.
In SAS explain which statement does not perform automatic conversions in comparisons?
What is a pdv and what are its functions?
If you have a dataset that contains 100 variables, but you need only five of those, what is the code to force SAS to use only those variables?
In ARRAY processing, what does the DIM function do?
what is the difference between calculating the 'mean' using the mean function and proc means? : Sas programming
What would be the value of month at the end of data step execution and how many observations would be there?
what can you learn from the sas log when debugging? : Sas programming
what is the basic structure sas administrator? : Sas-administrator
Given an unsorted data set, how to read the last observation to a new data set?
How to read an input file in sas?