1 of 28
Term
What result would you expect from submitting this step?
proc print data=work.newsalesemps
run;
a. an HTML report of the work.newsalesemps data set
b. an error message in the log
c. a LISTING report of the work.newsalesemps data set
d. the creation of a temporary data set called work.newsalesemps
Give this one a try later!
b
Without a RUN statement (or a following DATA or PROC step), the DATA step
doesn't execute. Unbalanced quotation marks can also cause the DATA step
running message if relatively little code follows the unbalanced quotation mark.
The other three problems above generate errors in the Log window.
,d
Every SAS file is stored in a SAS data library, which is a collection of SAS files,
such as SAS data sets and catalogs. In some operating environments, a SAS data
library is a physical collection of files. In others, the files are only logically
related. In the Windows and UNIX environments, a SAS data library is typically a
group of SAS files in the same folder or directory.
b
There is a missing semicolon following the data set name. When this step
runs, SAS will interpret the word RUN as an option in the PROC PRINT
statement (because of the missing semicolon). As a result, the PROC PRINT
step will not execute and an error message will be displayed in the log.
b
These options affect the format of listing output only. NODATE suppresses the
date and PAGESIZE= determines the number of rows to print on the page
Don't know?
, 2 of 28
Term
Which of the following is a true statement about SAS output?
a. SAS Enterprise Guide 5.1 displays Text or LISTING output by
default.
b. SAS Enterprise Guide 5.1 displays HTML output by default.
c. SAS 9.3 in the windowing environment displays LISTING output by
default.
d. SAS 9.3 in the windowing environment displays HTML output by
default.
Give this one a try later!
d
To store a file permanently in a SAS data library, you assign it a libref other than
the default Work. For example, by assigning the libref Profits to a SAS data
library, you specify that files within the library are to be stored until you delete
them. Therefore, SAS files in the Sashelp and Sasuser libraries are permanent
files.
d
All SAS statements must end with a semicolon, but they are free-format. You can
begin or end them anywhere, separate steps with line spaces, and optionally
end steps with a RUN statement.
, d
SAS Enterprise Guide 5.1 creates SAS Report output by default; you can
change the default output format and select additional output formats by
selecting Tools, Options, Results, Results General. Other result formats that
are available in SAS Enterprise Guide 5.1 include HTML, PDF, RTF, and Text
or LISTING output. In the windowing environment, SAS 9.3 displays HTML
output in the Results Viewer by default. You can choose to have SAS
b
display LISTING output in addition to or instead of HTML output. To change
Librefs must be 1 to 8 characters long, must begin with a letter or underscore,
the result format, select Tools, Options, Preferences, and click the Results
and can contain only letters, numbers, or underscores. After you assign a libref,
tab.
you specify it as the first element in the two-level name for a SAS file.
Don't know?
3 of 28
Term
Which of the following files is a permanent SAS file?
a. Sashelp.PrdSale
b. Sasuser.MySales
c. Profits.Quarter1
d. all of the above
Give this one a try later!
c
Variable names follow the same rules as SAS data set names. They can be 1 to 32
characters long, must begin with a letter (A-Z, either uppercase or lowercase) or
an underscore, and can continue with any combination of numbers, letters, or
underscores.
Term
What result would you expect from submitting this step?
proc print data=work.newsalesemps
run;
a. an HTML report of the work.newsalesemps data set
b. an error message in the log
c. a LISTING report of the work.newsalesemps data set
d. the creation of a temporary data set called work.newsalesemps
Give this one a try later!
b
Without a RUN statement (or a following DATA or PROC step), the DATA step
doesn't execute. Unbalanced quotation marks can also cause the DATA step
running message if relatively little code follows the unbalanced quotation mark.
The other three problems above generate errors in the Log window.
,d
Every SAS file is stored in a SAS data library, which is a collection of SAS files,
such as SAS data sets and catalogs. In some operating environments, a SAS data
library is a physical collection of files. In others, the files are only logically
related. In the Windows and UNIX environments, a SAS data library is typically a
group of SAS files in the same folder or directory.
b
There is a missing semicolon following the data set name. When this step
runs, SAS will interpret the word RUN as an option in the PROC PRINT
statement (because of the missing semicolon). As a result, the PROC PRINT
step will not execute and an error message will be displayed in the log.
b
These options affect the format of listing output only. NODATE suppresses the
date and PAGESIZE= determines the number of rows to print on the page
Don't know?
, 2 of 28
Term
Which of the following is a true statement about SAS output?
a. SAS Enterprise Guide 5.1 displays Text or LISTING output by
default.
b. SAS Enterprise Guide 5.1 displays HTML output by default.
c. SAS 9.3 in the windowing environment displays LISTING output by
default.
d. SAS 9.3 in the windowing environment displays HTML output by
default.
Give this one a try later!
d
To store a file permanently in a SAS data library, you assign it a libref other than
the default Work. For example, by assigning the libref Profits to a SAS data
library, you specify that files within the library are to be stored until you delete
them. Therefore, SAS files in the Sashelp and Sasuser libraries are permanent
files.
d
All SAS statements must end with a semicolon, but they are free-format. You can
begin or end them anywhere, separate steps with line spaces, and optionally
end steps with a RUN statement.
, d
SAS Enterprise Guide 5.1 creates SAS Report output by default; you can
change the default output format and select additional output formats by
selecting Tools, Options, Results, Results General. Other result formats that
are available in SAS Enterprise Guide 5.1 include HTML, PDF, RTF, and Text
or LISTING output. In the windowing environment, SAS 9.3 displays HTML
output in the Results Viewer by default. You can choose to have SAS
b
display LISTING output in addition to or instead of HTML output. To change
Librefs must be 1 to 8 characters long, must begin with a letter or underscore,
the result format, select Tools, Options, Preferences, and click the Results
and can contain only letters, numbers, or underscores. After you assign a libref,
tab.
you specify it as the first element in the two-level name for a SAS file.
Don't know?
3 of 28
Term
Which of the following files is a permanent SAS file?
a. Sashelp.PrdSale
b. Sasuser.MySales
c. Profits.Quarter1
d. all of the above
Give this one a try later!
c
Variable names follow the same rules as SAS data set names. They can be 1 to 32
characters long, must begin with a letter (A-Z, either uppercase or lowercase) or
an underscore, and can continue with any combination of numbers, letters, or
underscores.