Question : What is the purpose or the MISSOVER option on the INFILE statement? 1. It prevents SAS from loading a new record when the end of the current record is reached. 2. It enables SAS to scan the input data records until the character string that is specified in the @`character-string' expression is round. 3. Access Mostly Uused Products by 50000+ Subscribers input tine for all the variables in the statement. 4. It causes the DATA step to stop processing if an INPUT statement reaches the end of the current record without finding values for all variables in the statement.
Question :The following SAS program is submitted, creating the SAS data set ONE: data one; infile `file specification'; input num chars$; run; ONE NUMCHAR ---------------- The following SAS program is submitted: proc print data = one; where char = 23; run; What is output? 1. NUM CHAR 1 77 2. NUM CHAR 1 23 3 23 3. Access Mostly Uused Products by 50000+ Subscribers 1 23 3 23 1 77 4. No output is generated.
Ans : 2 Exp : Clearly, the DATE and NUMBER (page number) options are specified. Because the page number on the output is 1, even though PROC TABULATE output was just produced, PAGENO=1 must also have been specified. If you don't specify PAGENO=, all output in the Output window is numbered sequentially throughout your SAS session.
Question :
Which of the following programs correctly references a SAS data set named SalesAnalysis that is stored in a permanent SAS library?
1. data saleslibrary.salesanalysis; set mydata.quarter1sales; if sales>100000; run; 2. data mysales.totals; set sales_99.salesanalysis; if totalsales>50000; run; 3. Access Mostly Uused Products by 50000+ Subscribers var sales salesrep month; run; 4. proc freq data=1999data.salesanalysis; tables quarter*sales; run;
Ans : 2 Exp : Librefs must be 1 to 8 characters long, must begin with a letter or underscore, and can contain only letters, numerals, or underscores. After you assign a libref, you specify it as the first level in the two-level name for a SAS file.
Question : You have been given below SAS program, select the statement which is correct
data course100 ; Fee=5000; FEE_HIKE=0.1;
do month=1 to 12 ; INCREASE+(FEE+INCREASE)*FEE_HIKE; iteration+1; output; end; put _all_; run;
A. There would be 12 iteration B. Output statement will help in generating only last observation as an output. C. Last value hold by month variable will be 13 D. Iteration variable is redundant, and does not help in creating output.