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 the main difference between rename and label? (don't
say that they both perform the same function).

Answers were Sorted based on User's Feedback



what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / srilatha

label : assigns descriptive lables to variables.
lables allows upto 256 characters.
rename : changes the name of the variable.
rename allows upto 64 characters only.

Is This Answer Correct ?    19 Yes 1 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / ganesh

Yes i support with srilath By use label option we can give
discriptive names to the particular charcter upto length of
256 character and it is can given either in datastep or
proc step.

Rename is used for changing the name given inthe existing
dataset and it should not exceed 64 charcters and i can be
given only in the datastep.

Is This Answer Correct ?    6 Yes 0 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / rajaanku11

1. Label is global and rename is local i.e., label statement
can be used either in proc or datastep where as rename
should be used only in datastep.

2.If we rename a variable, old name will be lost but if we
label a variable its short name(old name) exists along with
it's descriptive name.

Is This Answer Correct ?    5 Yes 0 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / upendra

Even after labeling the variable,we must use old name for
further analysis.
Where as after renaming the variable we must use new name.

Is This Answer Correct ?    4 Yes 0 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / sss

rename is permanently variable name changes
label is just disply purpose

Is This Answer Correct ?    4 Yes 0 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / ramesh

RENAME:In variable name only _(Under Score),or any special
character is valid)
LABEL:In descriptive name any special character is valid

Is This Answer Correct ?    1 Yes 0 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / ganesh

Rename takes only 64characters length it can be used either
datastep or proc step and this rename is remains only for
the particular session once u terminate the session rename
options vanishes.
Label takes 256 characters length and its is a global
statment we can specify a brief name and this will remain
for long time untill & unless user delete or cancell the
variable.

Is This Answer Correct ?    1 Yes 1 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / santimoy sahoo

rename use in datastep old variable will lost which variable
renaming, but level use in both data & proc step we can see
proc print data old name if we use proc print data =dataset
level then we can see which we are leveling, not lost old data

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / raj

Rename : It is used to rename the existing variable and
permanent. Mainly it is used in merge and set statement if
same column name is available in the datasets being merged
or set.

label : It is only for displaying purpose for better
readability.

Is This Answer Correct ?    0 Yes 0 No

what is the main difference between rename and label? (don't say that they both perform the sa..

Answer / salma begum

Rename:
It is used to change the name of the VARIABLE peremanently.
Renaming should be done in a standardized was (start with _ or letter, should not start with special charaters or numbers).

Label:
It temporarily changes the variable name.
it can be written in data step or proc step.
Labelling can be done in unstandardized way (can contain blanks, start with numbers or letters or _) .
Label will not change the actual name of the variable

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SAS Interview Questions

Explain append procedure?

0 Answers  


DATA ABC; INPUT TDATE DATE9. AVG; CARDS; 18APR2008 150.00 19APR2008 167.00 20APR2008 123.00 21APR2008 145.00 ; RUN HOW CAN I FIND THE DIFFERENCE BETWEEN AVG OF 18APR2008 ANF 21APR2008?? IF ANY ONE GETS IT PLS TRY TO POST IT.

8 Answers   Verinon Technology Solutions,


why is the use of Retrive statement and give me with example?

1 Answers   ME,


what is option year cuttoff in sas

2 Answers   L&T,


Did you used proc lifetest? when?

2 Answers   Accenture, Parexel, Quintiles,


libname deepak 'C:\SAS Files'; proc format; invalue convert 'A+' = 100 'A' = 96 'A-' = 92 'B+' = 88 'B' = 84 'B-' = 80 'C+' = 76 'C' = 72 'F' = 65; data deepak.grades; input ID $3. Grade convert.; *format Grade convert. ; datalines; 001 A- 002 B+ 003 F 004 C+ 005 A ; proc print data = deepak.grades; run; I get the following output Obs ID Grade 1 001 . 2 002 . 3 003 . 4 004 . 5 005 . I don’t understand why Grade shows up as a missing value. Everything seems fine, including ID $3. Now, in case I use ID : $3. Or use column input, I get the desired output. Kindly help Deepak

7 Answers  


What is the function of output statement in a SAS Program?

0 Answers  


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

0 Answers  


Under what circumstances would you code a SELECT construct instead of IF statements?

7 Answers   Accenture,


What is the work of tranwrd function?

0 Answers  


What areas of SAS are you most interested in?

0 Answers   Quintiles,


how to get second highest salary from a employee table and how get a 5th highest salary from a employee table?

11 Answers   ABC, Amex,


Categories