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
How do you delete duplicate observations in sas?
Explain the difference between nodup and nodupkey options?
what is data access? : Sas-di
I have 3 years of work experience at a startup and recently got certified in Data Science with SAS. I need to know how to get into the analytics industry
What are all the problems you faced while validating tables and reports?
explain about various caches available in data integrator? : Sas-di
what is treatment emergent events and treatment emregent adverse event
How do you add a number to a macro variable? : sas-macro
What is maximum number of rows and cols can be handled in SAS?
What does the trace option do?
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
AE datasets names? how many types?
describe the interaction table in sas di? : Sas-di
How would you define the end of a macro? : sas-macro
Difference between SAS STATA & SPSS?