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
how will you location sas platform applications available from web browser? : Sas-bi
why is sas data integration studio important? : Sas-di
Tell e how how dealt with..
Have you used macros? For what purpose you have used? : sas-macro
If a variable contains letters or special characters, can it be numeric data type?
What is the difference between reading data from an external file and reading data from an existing data set?
Describe a time when you were really stuck on a problem and how you solved it?
What are the parameters of scan function?
Explain bmdp procedure?
What is the use of stop statement?
what are some differences between proc summary and proc means? : Sas programming
what has been your most common programming mistake? : Sas programming
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?
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?
How does the internal authentication work in sas? : sas-grid-administration