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...

What is difference between rename and lable in sas?

Answer Posted / subhashish nanda

Rename is used to change the variable name, while label
option is used to change the dataset name.
For Ex:

data ds1 (rename=(sex=gender sal=income));
infile datalines;
input id name$ sex$ age salary;
datalines;
001 abc m 23 45000
002 def f 34 67000
003 mno m 21 36000
;
run;

data ds2(label=sample);
infile datalines;
input id name$ sex$ age salary;
datalines;
001 abc m 23 45000
002 def f 34 67000
003 mno m 21 36000
;
run;

Here label option changes the dataset name as sample. So
dataset will be as per label i.e. sample, but when we will
open it we will view as ds2.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is your favorite all time computer book? Why?

2454


What do the PUT and INPUT functions do?

1269


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

1098


what is study design in while working with SAS? what are screening variables in SAS?

2179


Which function is used to count the number of intervals between two sas dates?

1066


How we can call macros with in data step? : sas-macro

1058


Explain what Proc glm does?

1112


Give some examples where proc report’s defaults are different than proc print’s defaults?

1010


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

1023


What are the difference between sas functions and procedures?

1069


describe how to adjust the performance of data integrator? : Sas-di

945


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

1298


How do you specify the number of iterations and specific condition within a single do loop?

1050


what is business intelligence? : Sas-bi

1014


what is hierarchy flattening? : Sas-di

1031