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
Describe the ways in which you can create macro variables?
what are input dataset and output dataset options? : Sas programming
what do the mod and int function do? What do the pad and dim functions do? : Sas programming
Explain proc sort?
what is the Population you used in your project, is it ITT or PP?
how does sas handle missing values in functions? : Sas programming
Explain the main difference between the sas procedures and functions? : Sas-administrator
How to create list output for cross-tabulations in proc freq?
what is ae onset date n what is RDS
i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;
what is SAS OPTIMIZATION?
What is the order of application for output data set options, input data set options and SAS statements?
What is program data vector (pdv) and what are its functions?
For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration
What are the different operating system platforms in which we can use sas? : sas-grid-administration