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

explain the key concept of sas? : Sas-administrator

0 Answers  


it will become easy if uuu provide website linkssss and list of consultanciessssss

0 Answers  


What does a PROC TRANSPOSE do?

8 Answers   Accenture,


Differences between where and if statement?

0 Answers  


Do you use PROC REPORT or PROC TABULATE? Which do you prefer? Explain.

3 Answers  






i have a macro variable var1,var2. i want titles for the each macro variable separately? how it is possible?

1 Answers   L&T,


What are the different operating system platforms in which we can use sas? : sas-grid-administration

0 Answers  


What is the use of %include statement?

0 Answers  


Hi , which book should i refer to for preaparing SAS statistical Exam. Searched a lot on books but still did n't find relevant books

2 Answers  


if reading an external file to produce an external file, what is the shortcut to write that record without coding every single variable on the record

4 Answers   HSBC,


How would you determine how far down on a page you have printed in order to print out footnotes?

3 Answers  


Mention sas system options to debug sas macros.

0 Answers  


Categories