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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately

3115


Explain bmdp procedure?

617


For what purpose would you use the RETAIN statement?

1047


what do the pad and dim functions do? : Sas programming

568


In sas admin differentiate between roles and capabilities? : sas-grid-administration

562






If money were no object, what would you like to do?

2693


What are pdv and it functions?

606


How to read an input file in sas?

659


Describe the function and untility of the most difficult SAS macro that you have written.

1731


what is intially documentation in sas?

4337


Differentiate between ceil and floor functions.

658


how to do user inputs and command line arguments in sas?

2432


how do you debug and test your sas programs? : Sas programming

567


what is sas database server? : Sas-di

619


what is the effect of the options statement errors=1? : Sas programming

600