Activity3 A213 PA
Activity3 A213 PA
Q2] What is the option for going to a specific line number of a code?
- Enter line number and the cursor will take you to the line.
-
Q3] What is the option to quickly format a code that is currently open in SAS Code
window?
Q4] Paste the icon for an option available in SAS Studio interface to quickly clear the
contents of a SAS Code.
Q5] Will the following code display all the observations having age and height greater
than OR equal to 72? Explain.
- Output comes as no observations because the condition is not applicable for age
and it is only applicable for height.
Q6] Does ‘Format Code’ option available in toolbar adjusts the spacing between
adjacent words?
- No
Q7] “Name of the SAS dataset input is displayed in the ‘Results’ tab”. What is the
fallacy in this statement?
Q8] What is the fallacy in the output of the following code? How to correct it?
footnote "Activity submitted on %sysfunc(today(), date9.)at
%sysfunc(time(),timeampm.)";
proc print data = sashelp.class noobs;
id name;
var Name Sex Age Height Weight;
sum weight;
where age between 11 and 13;
title ‘MBA Students’;
run;
- The ‘Name’ column repeats twice in the output. We can remove ‘Name’ from the
var statement.
Task 1: Use ‘CLASS’ dataset (from Libraries –> My Libraries -> SASHELP) for input
and create an output dataset sorted by name in ascending order and age in descending
order.
Task 3: Use ‘CLASS’ dataset (from Libraries –> My Libraries -> SASHELP) for input
and print it with split option.
proc print data=SASHELP.class split='*';
var Name Age Height Weight;
LABEL Name="Na * me";
run;