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
Explain data_null_?
Describe the ways in which you can create macro variables? : sas-macro
What are common programming errors committed in sas
What is the role of administrative users? : sas-grid-administration
how will you locate the sas platform applications? : Sas-bi
Explain what is data step?
How to create a permanent sas data set?
What are the advantages of using sas?
Give some examples where proc report’s defaults are same as proc print’s defaults?
What do you know about sas and what we do? : sas-grid-administration
Difference between sum function and using “+” operator?
what is the difference between: x=a+b+c+d; and x=sum (of a, b, c ,d);? : Sas programming
what is metadata? : Sas-bi
what cause the "error: connect:" and "error in the libname statement" when there weren't any such problems?
What is the difference between the proc sql and data step?