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
List out some key concept of SAS
how sas deals with business intelligence? : Sas-bi
What commands are used in the case of including or excluding any specific variables in the data set?
Which command is used to perform sorting in sas program?
AE datasets names? how many types?
how do you want missing values handled? : Sas programming
what are some good sas programming practices for processing very large data sets? : Sas programming
how to read the variables in sas? : Sas-administrator
Explain what is the use of proc gplot?
how would you create a data set with 1 observation and 30 variables from a data set with 30 observations and 1 variable? : Sas programming
what do you mean by data staging area? : Sas-di
what is program data vector? : Sas-administrator
I need level 2 to 5 sas using companies in india
What is the difference between input and infile statement?
How will you react when, while consulting a SAS documentation manual to get an answer to a problem, someone says hey, I thought you were supposed to know all that stuff already, and not have to look it up in a book?