Question : The following SAS program is submitted:
proc means data = sasuser.shoes; where product in ('Sandal' , 'Slipper' , 'Boot'); run; Which one of the following ODS statements completes the program and sends the report to an HTML file?
Just as it can generate a .pdf file, the Output Delivery System (ods) can generate .html files for SAS output. Again, we run a regression model separately for each of the four race categories in our data. Before running our regression, we open a .html file to which output is written. When we are done, we close the .html file.
ods html file = 'd:\body1.html'; proc reg data = hsb2; by race; model write = female read; run; quit; ods html close;
Question :
The following SAS program is submitted: proc format; value score 1 - 50 = 'Fail' 51 - 100 = 'Pass'; run; proc report data = work.courses nowd; column exam; define exam / display format = score.; run; The variable EXAM has a value of 50.5. How will the EXAM variable value be displayed in the REPORT procedure output?
Correct Answer : Get Lastest Questions and Answer : Answer is 50.5 Bcause that value in between Fail( less than 50) and Pass( greater than 51) Conditions try this ..
proc report data = work.courses nowd; column exam; define exam / display format = score.; run;
Question :
The following SAS program is submitted: options pageno = 1; proc print data = sasuser.houses; run; proc means data = sasuser.shoes; run; The report created by the PRINT procedure step generates 5 pages of output. What is the page number on the first page of the report generated by the MEANS procedure step?
Correct Answer : Get Lastest Questions and Answer : pagno=6 because proc print write 5 pages output.and after that proc means will write where..?obviously on page no =6; Print procedure generates 5 pages output, output means procedure starts page 6.
2. Using PROC PRINT statement you can print all the ROWS and COLUMNS which exists in dataset. However, you can request more sample data to be extracted if required.
4. PROC PRINT displays all observations and variables in the dataset, a column for observation numbers will be first left. Variable will be printed in the same order in which they are stored with the dataset.