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

Describe the ways in which you can create macro variables?

1252


what are input dataset and output dataset options? : Sas programming

1170


what do the mod and int function do? What do the pad and dim functions do? : Sas programming

1226


Explain proc sort?

1175


what is the Population you used in your project, is it ITT or PP?

2805


how does sas handle missing values in functions? : Sas programming

1284


Explain the main difference between the sas procedures and functions? : Sas-administrator

1114


How to create list output for cross-tabulations in proc freq?

1152


what is ae onset date n what is RDS

2661


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;

2557


what is SAS OPTIMIZATION?

2352


What is the order of application for output data set options, input data set options and SAS statements?

1620


What is program data vector (pdv) and what are its functions?

1318


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

1059


What are the different operating system platforms in which we can use sas? : sas-grid-administration

1121