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


Please Help Members By Posting Answers For Below Questions

Differences between where and if statement?

592


how do you want missing values handled? : Sas programming

545


how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming

852


Will it bother you if the guy at the next desk times the frequency and duration of your bathroom or coffee breaks on the grounds that ?you are getting paid twice as much as he is??

2106


How to specify variables to be processed by the freq procedure?

629






State the difference between INFORMAT and FORMAT ?

603


Describe the ways in which you can create a macro variable?

628


What are the default statistics for means procedure?

654


How would you invoke a macro? : sas-macro

562


Describe the ways in which you can create macro variables?

647


What is by-group processing?

586


What do the mod and int function do? : Sas programming

596


what are validation tools that are used in sas? : Sas-administrator

605


If you could design your ideal job, what would it look like?

2387


What sas features do you use to check errors and data validation?

698