Multiple choice technology programming languages

1----5----10----15----(file ‘abc’) RAM,,20 RAJU,SHARMA,24 DATA temp; Infile ‘abc’ dsd; Input FNAME $ LNAME $ AGE; RUN; What will be the value of LNAME for 1st observation?

  1. ‘,’

  2. blank character value

  3. ‘SHARMA’

  4. syntax error

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

With the DSD option in the INFILE statement, two consecutive commas are treated as a single delimiter, and the missing value is stored as a blank character value. In the first observation 'RAM,,20', the LNAME field between the two commas is missing, so SAS stores it as blank (not a comma character or 'SHARMA').