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
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 |
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 |
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 |
Answer / sss
rename is permanently variable name changes
label is just disply purpose
Is This Answer Correct ? | 4 Yes | 0 No |
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 |
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 |
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 |
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 |
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 |
what do the sas log messages "numeric values have been converted to character" mean? : Sas programming
in which companies SAS openings are there? List of companies using SAS technology.
Can you use a macro within another macro? If so how would SAS know where the current acro ended and the new one began?
describe about metadata object? : Sas-di
What is LAG function?How is it used? can any one explain
3 Answers TRE, Verinon Technology Solutions,
Describe how you would pass data to macro.
I need to find the numeric field which contains blank in between..Ex:123 456...there is blank in between the 123 456..I need to know if there is any SAS function to find a field.. Please suggest...
describe the interaction table in sas di? : Sas-di
I have a dataset with variables empid and doj how to calculate retirement age?
describe about joins? briefly?
Enlist the syntax rules followed in sas statements.
How many versions came upto now in SAS?