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 / vishnu

create data set as given above.Next follow the below step.

data abc;
format a $2.;
format g $2.;
format k $2.;
format m $2.;
format o $2.;
format s $2.;
format t $2.;
format w $2.;
set abc;
run;

Run the above program u will get variables in sorted order.

Note:-In the place of format statement u can use length
statement.

Is This Answer Correct ?    2 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how will you location sas platform applications available from web browser? : Sas-bi

544


why is sas data integration studio important? : Sas-di

561


Tell e how how dealt with..

1757


Have you used macros? For what purpose you have used? : sas-macro

559


If a variable contains letters or special characters, can it be numeric data type?

762






What is the difference between reading data from an external file and reading data from an existing data set?

636


Describe a time when you were really stuck on a problem and how you solved it?

2205


What are the parameters of scan function?

622


Explain bmdp procedure?

614


What is the use of stop statement?

644


what are some differences between proc summary and proc means? : Sas programming

507


what has been your most common programming mistake? : Sas programming

567


hi here is a problem can anybody solve this? i want to report the data through third party file. by using data _null_ or proc report or macro automation process. but i want to insert the 'titles and footnotes' in between the data and also starting of 2nd and ending of 2nd and starting of 3rd and ending of the 3rd page. tell me how and write the code?

1686


How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?

1944


How does the internal authentication work in sas? : sas-grid-administration

583