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-280 Topic 10 Question 54 Discussion

Actual exam question for SAS's A00-280 exam
Question #: 54
Topic #: 10
[All A00-280 Questions]

Given the following SAS program:

Which statement correctly identifies invalid values in the variable TRT, if only the values 'A', B', 'C are valid?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Deonna
10 days ago
Yeah, FIND could work too. But I think INDEXC is a bit more straightforward and easier to read in the code.
upvoted 0 times
...
Lai
12 days ago
Hmm, I'm not so sure. What about FIND? Doesn't that do a similar job to INDEXC?
upvoted 0 times
...
Valentine
13 days ago
You make a good point. I think I agree with Mirta that INDEXC is the way to go here. It's specifically designed for this kind of validation task.
upvoted 0 times
...
Leota
15 days ago
Hold up, wait a minute. Isn't INDEXC different from INDEX? I thought INDEX just checks if the string contains the substring, not whether the entire string is valid.
upvoted 0 times
...
Mirta
17 days ago
Yeah, that's how I understood it too. I think the best way to do that would be to use the INDEXC function, which checks if the string contains any characters that are not in the specified character set.
upvoted 0 times
...
Timothy
18 days ago
Hmm, this question seems pretty straightforward. I'm guessing the valid values for TRT are 'A', 'B', and 'C', and we need to find the invalid ones, right?
upvoted 0 times
...

Save Cancel