nerdexam
SAS_Institute

A00-212 · Question #58

The following SAS program is submitted: data new; do I = 1, 2, 3; nextfile = compress('March' || I ); infile abc filevar = nextfile end = eof; do until (eof); input dept $ sales; end; run; What is…

The correct answer is D. It names the variable NEXTFILE, whose change in value causes the INFILE statement to. See the full explanation below for the reasoning.

Question

The following SAS program is submitted:

data new; do I = 1, 2, 3; nextfile = compress('March' || I ); infile abc filevar = nextfile end = eof; do until (eof); input dept $ sales; end; run; What is the purpose of the FILEVAR=option on the INFILE statement?

Options

  • AIt names the variable NEXTFILE, whose value is a SAS file reference.
  • BIt names the variable NEXTFILE, whose value is output to the SAS data set NEW.
  • CIt names the variable NEXTFILE, whose values point to an aggregate storage location.
  • DIt names the variable NEXTFILE, whose change in value causes the INFILE statement to

How the community answered

(26 responses)
  • A
    4% (1)
  • B
    12% (3)
  • C
    8% (2)
  • D
    77% (20)

Community Discussion

No community discussion yet for this question.

Full A00-212 Practice