Question 38: You have been given below datasets (Fixed width)

 Following output has been generated

 Which of the following program can generate this output.

 A.

 data course2017;

 input COURSE_ID 1-3 COURSE_NAME$ 5-20 LOCATION$ 22-30 FEE 32-35 DATE$  36-47

 DURATION 48-50;

 TotalFee=(FEE*18/100)+FEE;

 ENTIREFEE+TotalFee;

 B.

 data course2017;

 input COURSE_ID 1-3 COURSE_NAME$ 5-20 LOCATION$ 22-30 FEE 32-35 DATE$  36-47

 DURATION 48-50;

 TotalFee=FEE;

 ENTIREFEE+TotalFee;

 C.

 data course2017;

 input COURSE_ID 1-3 COURSE_NAME$ 5-20 LOCATION$ 22-30 FEE 32-35 DATE$  36-47

 DURATION 48-50;

 TotalFee=FEE+1000;

 ENTIREFEE+TotalFee;

 D.

 data course2017;

 input COURSE_ID 1-3 COURSE_NAME$ 5-20 LOCATION$ 22-30 FEE 32-35 DATE$  36-47

 DURATION 48-50;

 TotalFee=(FEE*18/100)+FEE;

 ENTIREFEE=TotalFee;

 <img>BSASQ88.JPG</img>

  1. A
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. Thanks for considering SAS Certification Material

 Correct Answer : 1 Exp : Data is givene in fixed width and needs to be read based on position. As we can see all the option are reading same way based

 on position.

You can access to full explanation to question and answer from this page.