Correct Answer : Get Lastest Questions and Answer : Explanation: This data has embedded blank values in course name. And also numeric values are not in standard format. So you need to use modified list input to read this data.
Question : You have been given below values with fields in each record.
Correct Answer : Get Lastest Questions and Answer : Explanation: As you can see in the given dataset values has embedded blanks. And length of the first field is 16. So only place where length for the variable is defined in option 1 and 4. So option 2 and 3 is out. Now option 4 is not correct syntax wise. Because numeric field values, syntax are not correctly defined. So only correct option is 1
Question : You have been given below dataset in a file course.txt,
Which of the given program correctly reads this files.
A. filename course22 '/folders/myfolders/hedata/course22.txt'; data data23; infile course22 MISSOVER ; input ID $1-3 IDnum $4-11 @13 Fee comma8. LOCATION $ 22-35; run; B.
filename course22 '/folders/myfolders/hedata/course22.txt'; data data23; infile course22; input ID $1-3 IDnum $4-11 @13 Fee comma8. LOCATION $ 22-35; run; C. filename course22 '/folders/myfolders/hedata/course22.txt'; data data23; infile course22 MISSOVER ; input ID $1-3 IDnum @13 Fee comma8. LOCATION; run;
D. filename course22 '/folders/myfolders/hedata/course22.txt'; data data23; infile course22 MISSOVER ; input @1 ID +3 IDnum $4-11 @13 Fee comma8. LOCATION $ 22-35; run;
Correct Answer : Get Lastest Questions and Answer : Explanation: You can read given data using column position as well as +n format. Also few values are missing at the end of the records. So you must use missover option. So based on all this given requirement we can clearly say that option 1 and 4 are correct.