By admin | September 23, 2009

SAS Certified Base Programmer 123 Questions (74)

The following SAS program is submitted:

data work.test;
    Title = 'A Tale of two Cities, Charles j.Dickens';
    Word = scan(title,3,' ,');
run;

Which one of the following is the value of the variable WORD in the output data set?

A. T
B. of
C. Dickens
D. ‘ ‘ (missing character value)

4 comments | Add One

  1. admin - 09/23/2009 at 9:37 am

    B

  2. Piu - 08/28/2010 at 2:06 pm

    can u please explain why the ans is “B”

  3. sameer - 04/21/2011 at 6:33 am

    A space and a comma both are the deliminters.so third word is ‘Of’.

  4. Sabee - 05/10/2011 at 2:27 pm

    Delimiters are both space and comma

Leave a Comment

Leave a Reply

Your email address will not be published.