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 are the ways in which macro variables can be created in sas programming?
name the scheduler for scheduling job and explain the scheduler? : Sas-di
What is the role of administrative users? : sas-grid-administration
how we can create a FLAG datasets? Ex:-ID age_group no_persons 1 to 10 10 to 20 3 11 to 20 21 to 30 7 21 to 3o 31 to 40 5
what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming
How do you control the number of observations and/or variables read or written?
How substr function works in sas?
What are the data types that sas contain?
: and & modifiers.
describe how to adjust the performance of data integrator? : Sas-di
Name few SAS functions?
what is sas enterprise intelligence architecture? : Sas-bi
Which command is used to save logs in the external file?
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?
What is the function of output statement in a SAS Program?