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 do the pad and dim functions do? : Sas programming

1018


what is enterprise guide? What is the use of it? : Sas programming

1016


how will you location sas platform applications available from web browser? : Sas-bi

1071


What does PROC print, and PROC contents do?

1228


Differentiate between sas functions and sas procedures.

1227


what are some differences between proc summary and proc means? : Sas programming

1121


Approximately what date is represented by the SAS date value of 730?

1217


Mention the difference between ceil and floor functions in sas?

1149


what is program data vector? : Sas-administrator

1071


How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?

1093


What are all the problems you faced while validating tables and reports?

3463


What is the difference between input and infile statement?

1170


Explain the purpose of substr functions in sas programming.

1057


What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?

2583


Why and when do you use proc sql?

1245