Statistical Analysis System (SAS) Programming Certification Practice Exam

Disable ads (and more) with a membership for a one time $2.99 payment

Question: 1 / 50

Which of the following programs correctly references a SAS data set named SalesAnalysis stored in a permanent SAS library?

data saleslibrary.salesanalysis;

data mysales.totals;

The correct response highlights a fundamental aspect of how SAS references datasets within libraries. In SAS, to properly reference a dataset stored in a permanent library, the typical syntax follows the format of `library_name.dataset_name`. In the context of the question, the dataset named SalesAnalysis is expected to be referenced consistently with its library. While the answer provided suggests that option B is correct, it does not follow the required syntax for either referencing a library or indicating a dataset's association with that library clearly. The option that correctly references the dataset SalesAnalysis would need to identify the name of the library in which SalesAnalysis is stored. For instance, if SalesAnalysis is housed in a library named saleslibrary, it would be referenced in the format `saleslibrary.SalesAnalysis`. The choice to focus on would be either options A or a similar variation, depending on the actual name of the library in the scenario. In practice, the clarity of naming libraries and datasets is critical for effective SAS programming, allowing clear accessibility and manipulation of data.

proc print data=salesanalysis.quarter1;

proc freq data=2017data.salesanalysis;

Next

Report this question