Exam A00-211 All QuestionsBrowse all questions from this exam
Question 65

The following SAS program is submitted:

data WORK.COMPRESS;

ID = "˜1968 05-10 567';

NewID = compress (ID, "-");

run;

What will the value of NewID be in the WORK.COMPRESS data set?

    Correct Answer: B

    The SAS compress function removes specific characters from a string. In this case, the second argument is '-', meaning all hyphens will be removed from the string '1968 05-10 567'. Hence, the value of NewID will be '19680510567'.

Discussion
KleinstoneOption: D

the answer should be D.

DEAWSOption: A

in question it is given ID = "˜1968 05-10 567' with improper quotations. so may be Answer is =option 'A' , if it is correct quotations then answer will be option = 'D';

Mandar77Option: D

Answer is D .. Tested