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..
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
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;
proc sort data=abc;
run;
| Is This Answer Correct ? | 2 Yes | 24 No |
What is program data vector (pdv) and what are its functions?
when we are using the PROC TRANSPOSE? OBSERVATIONS are repeated then what will happen and what it will show in log window.
what are sas bi dashboard components? : Sas-bi
How to convert a numeric variable to a character variable?
What is the basic structure of a sas program?
what are the sites did u refer for enquiries and doubts for SAS
How to convert a given date value into SAS date
9 Answers CitiGroup, Quintiles,
How to create an external dataset with sas code?
How do you debug and test your SAS programs? What can you learn from the SAS log when debugging? How do you test for missing values? How would you create multiple observations from a single observation? What are some good SAS programming practices for processing very large data sets? Briefly describe 5 ways to do a "table lookup" in SAS. Why is SAS considered self-documenting? Are you sensitive to code walk-throughs, peer review, or QC review? What other SAS features do you use for error trapping and data validation? How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?
what is treatment emergent events and treatment emregent adverse event
Do you need to know if there are any missing values?
Approximately what date is represented by SAS date value of 730