how to rearrange the data as our wish by using dataset block?

Answers were Sorted based on User's Feedback



how to rearrange the data as our wish by using dataset block? ..

Answer / xyz

use retain statement before the set statement

Is This Answer Correct ?    5 Yes 1 No

how to rearrange the data as our wish by using dataset block? ..

Answer / srinivas anumalla

Probably there are many options,like id statement,proc sort.
As Some body said retain is not for that operation.

But i strongly suggest Proc sort.

Is This Answer Correct ?    1 Yes 0 No

how to rearrange the data as our wish by using dataset block? ..

Answer / raaman

data Temp;
input Sno Sname $ Eng Maths Sci Soc;
cards;
1212 Smith 67 78 89 98
2334 Lisa 78 89 99 87
;
run;

data Temp1;
retain Sname Sci Eng Maths Soc Sno;
set Temp;
run;

proc print data = Temp1;
title "1.Use of Retain Statement";
run;

use retain statement before the set statement

Is This Answer Correct ?    1 Yes 0 No

how to rearrange the data as our wish by using dataset block? ..

Answer / nani

by using id statement
proc print data=dsn;
id var3 var5 var1;
run;

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More SAS Interview Questions

what is sas and what are the functions? : Sas-administrator

0 Answers  


How you are maintaining sas programmes in your company...any specific version control software you are using? If so, tell me the name?

0 Answers   Accenture,


what is chi-square test? have you used that?

1 Answers   Accenture, Quintiles,


Explain what is SAS informats?

0 Answers  


how can get the first and last observations in a dataset using Proc SQl?

4 Answers   Satyam,






List out some key concept of SAS

0 Answers  


What are the criticality that you have faced during your project in SAS?

2 Answers  


Describe how you would pass data to macro.

3 Answers  


What are the different types of sas functions?

0 Answers  


Difference between SAS STATA & SPSS?

0 Answers  


In ARRAY processing, what does the DIM function do?

0 Answers  


How to convert .xls file into CSV format?

6 Answers   Quintiles,


Categories