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


Please Help Members By Posting Answers For Below Questions

What is a method to debug and test your SAS program?

715


For a user to have access to a standard workspace server, is internal authentication alone is sufficient? : sas-grid-administration

535


How would you define the end of a macro? : sas-macro

607


do you need to know if there are any missing values? : Sas programming

544


it will become easy if uuu provide website linkssss and list of consultanciessssss

1526






what are the categories that sas informats are used to the place the data? : Sas-administrator

611


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1661


How does SAS handle missing values in: assignment statements, functions, a merge, an update, sort order, formats, PROCs?

1096


What is SAS? What are the functions does it performs?

728


How do you convert basic cube to transaction cube and transaction cube to basic cube?

1770


How would you invoke a macro? : sas-macro

548


name the scheduler for scheduling job and explain the scheduler? : Sas-di

592


how sas deals with business intelligence? : Sas-bi

581


Enlist the functions performed by sas.

673


what is data governance? : Sas-di

621