Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

List out some key concept of SAS

1117


how sas deals with business intelligence? : Sas-bi

1052


What commands are used in the case of including or excluding any specific variables in the data set?

1088


Which command is used to perform sorting in sas program?

1043


AE datasets names? how many types?

2494


how do you want missing values handled? : Sas programming

951


what are some good sas programming practices for processing very large data sets? : Sas programming

925


how to read the variables in sas? : Sas-administrator

1014


Explain what is the use of proc gplot?

1191


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

1332


what do you mean by data staging area? : Sas-di

1132


what is program data vector? : Sas-administrator

1068


I need level 2 to 5 sas using companies in india

2380


What is the difference between input and infile statement?

1167


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?

2455