Question : In your SAS program, you have defined following ODS statement. Which type of output will be created assuming all the settings are default using below ODS statements? Ods html file=/home/HE.html Ods pdf file=/home/HE.pdf
Correct Answer : Get Lastest Questions and Answer : Explanation: By default HTML output will be generated. Hence, given ODS statement can generate HTML as well as PDF output.
Question : You are writing a SAS program to generate the PDF output in a Window based environment. You have been asked to first close the html ods using following statement Ods html close; Why?
4. Previously running SAS program can be stopped before running current program
Correct Answer : Get Lastest Questions and Answer : Explanation: By default HTML ODS is open in both Unix and Window environment. And you want to generate any other type of report like PDF. RTF etc. Than it is always suggested to close the by default open ODS of type HTML. Reason being any open ODS destination will consume system resources and make system slower. To avoid this kind of issue, you must first close the all the open ODS, whether it is a default one or opened by any of your SAS program.
Question : You have written following SAS program ods html body='/folders/myfolders/hadoopexam/hesample101.html'; proc print data=course2017 ; var COURSE_ID COURSE_NAME LOCATION FEE DATE DURATION ; run; proc print data=course2017 (Obs=5); var COURSE_ID COURSE_NAME LOCATION FEE DATE DURATION ; run; ods html close; ods html path="%qsysfunc(pathname(work))";
What would be the result, expected once this program will be executed?
1. It will generate an HTML file with single report having 5 observations.
2. It will generate an HTML file with single report having all the observations from course2017 dataset.
Correct Answer : Get Lastest Questions and Answer : Explanation: As you have opened HTML destination and multiple PROC steps are being executed. It means it will generate the output with the all the PROC steps and all will be appended in a single HTML file. Hence, there are two PROC steps, which causes two report will be generated using single HTML file.