nerdexam
SAS_Institute

A00-280 · Question #100

Which one of the following is true of the RETAIN statement in a SAS DATA step program?

The correct answer is D. It adds the value of an expression to an accumulator variable and ignores missing values. See the full explanation below for the reasoning.

Question

Which one of the following is true of the RETAIN statement in a SAS DATA step program?

Options

  • AIt can be used to assign an initial value to N.
  • BIt is only valid in conjunction with a SUM function.
  • CIt has no effect on variables read with the SET, MERGE and UPDATE statements.
  • DIt adds the value of an expression to an accumulator variable and ignores missing values.

How the community answered

(38 responses)
  • A
    11% (4)
  • B
    3% (1)
  • C
    5% (2)
  • D
    82% (31)

Community Discussion

No community discussion yet for this question.

Full A00-280 Practice