Question 39: You have been given below raw data
Which of the following program correctly read given data
A.
filename course42 '/folders/myfolders/hedata/course42.txt';
data data42;
infile course42;
input
@1 course_name $ 7. @8 FEE1: comma7. @16 COURSE_DATE : date9. @25 DISCOUNT: comma7. LOCATION $ DURATION ;
run;
B.
filename course42 '/folders/myfolders/hedata/course42.txt';
data data42;
infile course42;
input
course_name $ 7. FEE1: comma7. COURSE_DATE : date9. DISCOUNT: comma7. LOCATION $ DURATION ;
run;
C.
filename course42 '/folders/myfolders/hedata/course42.txt';
data data42;
infile course42;
input
course_name $ 7. FEE1: comma7. COURSE_DATE : date9. @25 DISCOUNT: comma7. LOCATION $ DURATION ;
run;
D.
data '/folders/myfolders/hedata/course42.txt';
infile course42;
input
course_name $ 7. FEE1: comma7. COURSE_DATE : date9. @25 DISCOUNT: comma7. LOCATION $ DURATION ;
run;
- A
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering SAS Certification Material
Correct Answer : 4 Exp : As we read data from the rawfile, we need to create fileref first. Once the fileref is created we need we need to use it in
data step.
You can access to full explanation to question and answer from this page.