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?

Answers were Sorted based on User's Feedback



What is difference between rename and lable in sas?..

Answer / smm

Rename specifies new names for variables in output SAS data
sets

Label assigns descriptive labels to variables

Is This Answer Correct ?    34 Yes 4 No

What is difference between rename and lable in sas?..

Answer / chandra

Rename permanently changes the variable name and where as
lable gives the label to the variable

Is This Answer Correct ?    17 Yes 1 No

What is difference between rename and lable in sas?..

Answer / vishal

Rename will overwrite the values in data portion and lable
displays in descriptor portion just for printing

Is This Answer Correct ?    14 Yes 4 No

What is difference between rename and lable in sas?..

Answer / vinod

Rename allows up to 64 characters only but label allows up
to 256 characters.when we use rename option we can't find
the old name of the variable in the contents procedure,but
in case of label we can see the old name & descriptive
label name of that particular variable.

Is This Answer Correct ?    11 Yes 1 No

What is difference between rename and lable in sas?..

Answer / mahesh

yes
i agree with above answers
rename changes the total name of variable it will disturb
the source

label also changes the variable descriptive information of
the variable it won't disturb the source

Is This Answer Correct ?    6 Yes 0 No

What is difference between rename and lable in sas?..

Answer / sachin

Rename is modification of previous names into new one
and Lable is which gives more clarification for data.

Is This Answer Correct ?    5 Yes 0 No

What is difference between rename and lable in sas?..

Answer / srinivas,korasavada

Rename specifies new names for variables in output SAS data
sets and you can give 8 charecters only.

Label specifies new description upto 256 charecters and it
will appear in dataset not in output.

Is This Answer Correct ?    8 Yes 4 No

What is difference between rename and lable in sas?..

Answer / gopi

1) rename can be used as statement or dataset option to
change the name of variable.
2) label, if used as a statement it changes or assigns label
to a variable and if used as a dataset option it changes or
assigns label to the dataset.

Reaname:

a) If you use rename data set option for input dataset, then
SAS renames the variable name in Input dataset.

Data new;
x=1;
y=2;
run;

Data ren ;
set new(rename=(x=z));
run;
This will create ren dataset with z and y variables, and you
can use z varible in the same data step if you want to do
any calculations.


b) If you use rename data set option for output dataset,
then SAS renames the variable in output dataset.
Data new;
x=1;
y=2;
run;

Data ren (rename=(x=z));
set new;
run;
This will create ren dataset with z and y variables, and you
can not use z varible in the same data step if you want to
do any calculations.



3)You can use Rename as statement also, in which case it
effects only output dataset. i.e you can not use the renamed
variable in same data step in calculations

Label:
a) If you use label statement in data step, it assigns or
changes the label name for a variable permanently.
b) If you use label statement in proc step, it assigns or
changes the lable name for a variable temporarily for that
proc step.
c) If you use label as dataset option it assigns label to
the dataset, but not the variable.

Is This Answer Correct ?    3 Yes 2 No

What is difference between rename and lable in sas?..

Answer / 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

What is difference between rename and lable in sas?..

Answer / kumarravi111

Rename changes the variables name in data set , where as
lable gives descriptive explaining of variable

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More SAS Interview Questions

Can anyone help me about SAS Realtime scenarios in Clinical field

0 Answers  


How would you keep from overlaying the a SAS set with its sorted version?

4 Answers  


Mention what is the difference between nodupkey and nodup options?

0 Answers  


What is SAS Information Map Studio and its purpose ?

2 Answers   SAS, TCS,


I have 50 variables in one data set, In reports i want to generate every 10 variables in one page how we will write code in proc report.

4 Answers  


Write a SAS macro to calculate number of numbers in an email address

2 Answers  


what is the difference between %put and symbolgen?

6 Answers  


when we are using the PROC TRANSPOSE? OBSERVATIONS are repeated then what will happen and what it will show in log window.

1 Answers  


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

0 Answers  


/* To determine the maximum and minimum of V1 */ data before3; input v1 v2 v3; cards; 3 2 1 4 6 5 2 1 3 6 5 4 1 3 2 5 4 6 ; run;

5 Answers  


What are the automatic variables for macro? : sas-macro

0 Answers  


How will you use the WHO Drug Dictionary for Reporting Clinical Trials?

0 Answers  


Categories