Multiple choice technology

In DATA step,how can you reference a temporary SAS data set named Sales?

  1. Sales

  2. Work.Sales

  3. Items.Sales(after assigning the libref Items)

  4. both a & b above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

In SAS DATA steps, temporary data sets stored in the WORK library can be referenced either by their one-level name 'Sales' (SAS automatically looks in WORK) or by the two-level name 'WORK.Sales' (explicitly specifying the library). Both methods work for temporary data sets. The Work library is the default location for temporary SAS data sets, and SAS provides this shorthand convenience. You cannot use a different libref like 'Items' unless you've explicitly assigned it to point to the WORK library location.