Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

SAS Exam A00-215 Topic 11 Question 48 Discussion

Actual exam question for SAS's A00-215 exam
Question #: 48
Topic #: 11
[All A00-215 Questions]

Which option renames the variable Name to StudentName when reading the ClassRoster data set?

Show Suggested Answer Hide Answer
Suggested Answer: A

To rename a variable when reading a dataset in SAS, you use the rename= option inside the parentheses following the dataset's name in the set statement. The correct syntax for renaming the variable 'Name' to 'StudentName' is: rename=(oldname=newname). Therefore, the correct option is A, which correctly places the old variable name 'Name' first, followed by an equal sign, and then the new variable name 'StudentName'. The parentheses enclose the rename operation, and it is correctly nested within the set statement.


SAS documentation on the RENAME= data set option, SAS Institute.

Contribute your Thoughts:

Jospeh
5 hours ago
I disagree, I believe option C is the right one.
upvoted 0 times
...
Minna
3 days ago
B doesn't seem right, the syntax is off. I'd go with A.
upvoted 0 times
...
Daren
4 days ago
A looks good, it renames the variable Name to StudentName. Pretty straightforward!
upvoted 0 times
...
Lang
7 days ago
I think the correct option is A.
upvoted 0 times
...

Save Cancel