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 A00-231 Exam - Topic 1 Question 21 Discussion

The following SAS program is submitted:data work.test;type='SQL';if type='SAS' then description='SAS Program';else description='other'; length description 8;run;What occurs when the program is submitted?Select one:
D) The variable Description is created as an 11-byte character variable and the DATA step fails due to errors.
A) The variable Description is created as an 11-byte character variable and is assigned the value 'SAS program' in the DATA step.
B) The variable Description is created as a 5-byte character variable and is assigned the value 'SAS P' in the DATA step.
C) The variable Description is created as an 8-byte character variable and is assigned the value 'SAS Prog' in the DATA step.

SAS A00-231 Exam - Topic 1 Question 21 Discussion

Actual exam question for SAS's A00-231 exam
Question #: 21
Topic #: 1
[All A00-231 Questions]

The following SAS program is submitted:

data work.test;

type='SQL';

if type='SAS' then description='SAS Program';

else description='other'; length description 8;

run;

What occurs when the program is submitted?

Select one:

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

0/2000 characters
Whitley
1 month ago
I remember that the length statement defines the variable size, but I'm not sure if it affects the value assigned.
upvoted 0 times
...

Save Cancel