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


Code a PROC SORT on a data set containing State, District
and County as the primary variables, along with several
numeric variables.

Answers were Sorted based on User's Feedback



Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / lakshmi

proc sort data=data1 out=data2;
by district state country;
run;

Is This Answer Correct ?    7 Yes 0 No

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / chiranjeevi

data code;
infile'C:\Documents and Settings\admin\Desktop\country.txt';
input state$ district$ county$ population total;
proc sort data=code out=count;
by state district county;
run;
proc print data=count;
run;

Is This Answer Correct ?    5 Yes 1 No

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / radhika rakesh

here some step has syntax errors lik in input statement its
mentioned as $ state and so but correct form is state $...

Is This Answer Correct ?    4 Yes 0 No

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / swarup

Proc Sort data=data1 out=data2;
By State District County _numeric_;
Run;

Is This Answer Correct ?    3 Yes 0 No

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / pallavi

data abc;
infile 'c:\country.txt';
input &state &district &country population total:
proc sort data=abc:
by state district country;
proc print data=abc;
run;

Is This Answer Correct ?    3 Yes 2 No

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / prakash

data info;
infile 'C:\country.txt';
input $state $district $country population total;
proc sort data=info;
by state district country;
proc print data= info ;
run;

Is This Answer Correct ?    3 Yes 4 No

Code a PROC SORT on a data set containing State, District and County as the primary variables, alon..

Answer / daya

data daya;
infile 'c:\country.txt';
input &state &district &country population total:
proc sort data=daya:
by state;
proc print data=daya;
run;

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More SAS Interview Questions

What is proc sort?

0 Answers  


What are the default statistics for means procedure?

0 Answers  


What are the data types in sas?

0 Answers  


What is the difference between class statement and by statement in proc means?

0 Answers  


what is the use of proc sql?

5 Answers   CitiGroup,


How would you identify a macro variable? : sas-macro

0 Answers  


how do the in= variables improve the capability of a merge? : Sas programming

0 Answers  


libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak

7 Answers  


if the Id has more then two transcatiion then show the first observation, IF Id has only two observation then It show both the observation

0 Answers   CTS,


if x=round(26.3,10)-1 then x= how much and how explain?

5 Answers   BoA,


What do you know about symput and symget?

0 Answers  


what is the Population you used in your project, is it ITT or PP?

0 Answers   Accenture, Quintiles,


Categories