Given the following raw data records:
The following output data set is desired:
Which SAS program correctly reads in the raw data?
Given the following raw data records:
The following output data set is desired:
Which SAS program correctly reads in the raw data?
The correct SAS program needs to both specify the delimiter being used in the data (which is '*') and use the correct formats for reading the data. The 'dlm=' option specifies the delimiter, and 'dsd' option handles consecutive delimiters correctly and removes quotation marks if present. Option B correctly uses 'dlm=*' and 'dsd', along with specifying the format for the 'bdate' variable using ':mmddyy10.'. This will correctly read the data and produce the desired output.
Correct Answer : B
b is correct