Premium

Base SAS Certified Associate: Programming Fundamentals Using SAS Questions and Answers (Dumps and Practice Questions)



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

 : In your SAS program, you have defined following ODS statement. Which type of output will be created assuming all the settings are default
1. HTML and PDF
2. Only HTML
3. Access Mostly Uused Products by 50000+ Subscribers
4. No output will be created because ODS is closed by default.


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?

 : 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
1. It is good programming practice

2. It will format your code in HTML format

3. Access Mostly Uused Products by 50000+ Subscribers

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?

 : You have written following SAS program
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.

3. Access Mostly Uused Products by 50000+ Subscribers

4. It will fail to generate report.


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.


Related Questions


Question : You have been given below dataset



Where every 4th record has course id and you want to read it first, which of the following can help you for this?

 : You have been given below dataset
1. Column pointer control

2. Line pointer control

3. Access Mostly Uused Products by 50000+ Subscribers

4. Line position control



Question : You have been given below dataset, which contains lines. However, you want to read it in observation, where each observation will have
3 records from raw file.



Which of the following can help for this requirement?

  : You have been given below dataset, which contains  lines. However, you want to read it in  observation, where each observation will have
1. @n

2. /

3. Access Mostly Uused Products by 50000+ Subscribers

4. I++



Question : You have been given below dataset, which contain observation in line.

You want to read the observation like this 4th line first and then 1, 2, 3 line. Which of the following can help you to read raw data using absolute
line number?

  : You have been given below dataset, which contain  observation in  line.
1. @n

2. @

3. Access Mostly Uused Products by 50000+ Subscribers

4. \



Question : You have been given below dataset

How will you read it in 2 observation in order of course_name , training_date, location, duration, fee and institute?

  : You have been given below dataset
1. input course_name $ training_date mmddyy8. /
location $ duration /
Fee INSTITUTE $;


2. input
#1 course_name $ training_date mmddyy8. /
#2 location $ duration /
#3 Fee INSTITUTE $;


3. Access Mostly Uused Products by 50000+ Subscribers
#1 course_name $ training_date mmddyy8. ;
#2 location $ duration ;
#3 Fee INSTITUTE $;


4. input course_name $ training_date mmddyy8. \
location $ duration \
Fee INSTITUTE $;



Question : You have been given below dataset


Now you want to read ID first from line 4 and then go back to line 1 to read course_name and date, which of the following syntax are correct?

  : You have been given below dataset
1. Input #4 id $ \
course_name $ course_date mmddyy8.;


2. Input #4 id $
@1 course_name $ course_date mmddyy8.;


3. Access Mostly Uused Products by 50000+ Subscribers
#1 course_name $ course_date mmddyy8.;


4. Input #4 id $
#1 course_name $ course_date mmddyy8.;



Question : You have below raw data file



And given SAS input statement

input
# 4 course_id $
#1 course_name $ training_date mmddyy8. /
location $ duration /
Fee INSTITUTE $;

How many observation will be produced using above input statement?

  : You have below raw data file
1. 24

2. 16

3. Access Mostly Uused Products by 50000+ Subscribers

4. 4

5. 6