146 data family;
147 infile 'C:\mysaslib\relation' dlm = ',';
148 input relation $ firstname $;
NOTE: The infile 'C:\mysaslib\relation' is:
RECFM=V,LRECL=256,File Size (bytes)=11,
NOTE: 1 record was read from the infile 'C:\mysaslib\relation'.
The minimum record length was 11.
The maximum record length was 11.
NOTE: The data set WORK.FAMILY has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.02 seconds
cpu time 0.03 seconds
The given data record contains commas to separate values. To read this record correctly, we need to use the DLM (delimiter) option which should be defined within the infile statement. Thus, the correct answer option is C. The program in option C will read values correctly and yield the desired output.
The one and only FREE resource for general SAS online training as well as study guides for the SAS Base Certification. My goal is to create the SAS Certification prep guide that I never found but always wanted. This should also be a place to come if you are new to the language but are simply looking for online SAS training.