Question 35: You have been given below dataset named data41.

 And you need to generate data as below in a file called gen_course43.txt which of the following code segment is correct?

 A.

 data gen_course43.txt;

 set data41;

 file ' data41 dsd;

 put course_name FEE1: comma7.  FEE2 : comma7. FEE3: comma7.  FEE4 : comma7.;

 run;

 B.

 data _null_;

 set data41;

 file '/folders/myfolders/hedata/gen_course43.txt' dsd;

 put course_name FEE1: comma7.  FEE2 : comma7. FEE3: comma7.  FEE4 : comma7.;

 run;

 C.

 data _null_;

 set data41;

 file '/folders/myfolders/hedata/gen_course43.txt';

 put course_name FEE1: comma7.  FEE2 : comma7. FEE3: comma7.  FEE4 : comma7.;

 run;

 D.

 data _null_;

 set data41;

 file '/folders/myfolders/hedata/gen_course43.txt' dlm=;

 put course_name FEE1: comma7.  FEE2 : comma7. FEE3: comma7.  FEE4 : comma7.;

 run;

 

  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 : 2 Exp : As given dataset, we can clearly see that we need to read data from data41. Hence, it should be part of set statement, as well

 as we are not generating new dataset, we need to generate file.

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