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

What are the ways in which macro variables can be created in sas programming?

573


name the scheduler for scheduling job and explain the scheduler? : Sas-di

600


What is the role of administrative users? : sas-grid-administration

663


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

1664


what are some problems you might encounter in processing missing values? In data steps? Arithmetic? Comparisons? Functions? Classifying data? : Sas programming

735






How do you control the number of observations and/or variables read or written?

753


How substr function works in sas?

705


What are the data types that sas contain?

661


: and & modifiers.

868


describe how to adjust the performance of data integrator? : Sas-di

568


Name few SAS functions?

670


what is sas enterprise intelligence architecture? : Sas-bi

548


Which command is used to save logs in the external file?

574


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?

709


What is the function of output statement in a SAS Program?

619