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
What do you code to create a macro? : sas-macro
In sas, what are the areas that you are most interested in? : sas-grid-administration
what are the new features included in the new version of sas i.e., Sas 9.1.3? : Sas programming
Why and when do you use proc sql?
Explain the main difference between the sas procedures and functions? : Sas-administrator
What is the purpose of trailing @ and @@? How do you use them?
What is maximum storage capability of SAS?
what is sas enterprise intelligence architecture? : Sas-bi
what are several options for creating reports in web report studio? : Sas-bi
sas implementing companies in pune implementing clinical projects if anyone knows plz send ans immediately
is data integration and etl programming is same? : Sas-di
How does the internal authentication work in sas? : sas-grid-administration
Explain why double trailing @@ is used in input statement?
What is the basic structure of a sas program?
how does sas handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, procs? : Sas programming