Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



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..

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

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..

Answer / sravan

data xyz;
set abc;
retain a g k m o s t;
run;

Is This Answer Correct ?    3 Yes 9 No

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..

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

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..

Answer / amar

Proc sort data=dataset;
by idnumber ;
run;

Is This Answer Correct ?    2 Yes 25 No

Post New Answer

More SAS Interview Questions

What is the difference between proportion and average?

0 Answers   KPMG,


How did you use the round function?give an example(don't say it will round to the nearest intger) eg1:round(84.55,.1) =84.6 eg2:round(92.64,.1)=92.6,How it is happening like this tell me the logic,that is how the round function works when we have deimal values?

2 Answers   BoA,


What is the order of evaluation of the comparison && logical && relational operators:?

2 Answers   CitiGroup,


what is ae onset date n what is RDS

0 Answers   Accenture,


What is the differnce between SDTM 3.1.2 to 3.1.1 version

0 Answers   Wipro,


what is pdv? how it is related to input buffer in sas?

5 Answers   HSBC, Satyam,


What commands are used in the case of including or excluding any specific variables in the data set?

0 Answers  


which date function advances a date, time or datetime value by a given interval? : Sas programming

0 Answers  


How to read an input file in sas?

0 Answers  


What is the use of the %include statement?

0 Answers  


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data set to a second data set, and the non-matches of the right-most data set to a third data set.

10 Answers   Accenture,


what is cummaltive frequency,and varience in proc unviarte

1 Answers   L&T,


Categories