DATA Step, Macro, Functions and more

Is the Answer key correct? PROC PRINT Output.

Reply
Occasional Contributor
Posts: 19

Is the Answer key correct? PROC PRINT Output.

Hi,

 

Attached is a question about : Which options are used to create the following PROC PRINT output?

 

According to the answer key, B is the correct option because the DATE and NONUMBER system options cause the output to appear with the date but without page number. In the PROC PRINT step, the DOUBLE option specifies double spacing, and the NOOBS option removes the default Obs column.

 

I did not see DOUBLE SPACING from the output table, so I select D.

 

Thanks for your help in advance.

 

Eric

Super User
Posts: 23,311

Re: Is the Answer key correct? PROC PRINT Output.

[ Edited ]
Posted in reply to ericliuzh1

What is the source of the question? 

 

If this is the third edition the errata guide is here.

https://support.sas.com/en/books/content-updates-base-prep-guide.html

 

If it's an older version, you'll need to find the corrected update page. Not sure it's available.

 

From a quick scan, I would also say D would be the correct answer, not because of the DOUBLE but because of the NOOBS not being on C. 

 

 


@ericliuzh1 wrote:

Hi,

 

Attached is a question about : Which options are used to create the following PROC PRINT output?

 

According to the answer key, B is the correct option because the DATE and NONUMBER system options cause the output to appear with the date but without page number. In the PROC PRINT step, the DOUBLE option specifies double spacing, and the NOOBS option removes the default Obs column.

 

I did not see DOUBLE SPACING from the output table, so I select D.

 

Thanks for your help in advance.

 

Eric


 

Occasional Contributor
Posts: 19

Re: Is the Answer key correct? PROC PRINT Output.

It is the fourth edition.

Super User
Posts: 13,333

Re: Is the Answer key correct? PROC PRINT Output.

Posted in reply to ericliuzh1

@ericliuzh1 wrote:

Hi,

 

Attached is a question about : Which options are used to create the following PROC PRINT output?

 

According to the answer key, B is the correct option because the DATE and NONUMBER system options cause the output to appear with the date but without page number. In the PROC PRINT step, the DOUBLE option specifies double spacing, and the NOOBS option removes the default Obs column.

 

I did not see DOUBLE SPACING from the output table, so I select D.

 

Thanks for your help in advance.

 

Eric


I agree that the picture you show does not indicate the blank line between observations I would expect in the LIsting destination using the DOUBLE option in proc print. Who published that in when?

Occasional Contributor
Posts: 19

Re: Is the Answer key correct? PROC PRINT Output.

Fourth edition Prep Guide. Ch.5, Q5.

SAS Super FREQ
Posts: 9,324

Re: Is the Answer key correct? PROC PRINT Output.

Posted in reply to ericliuzh1
Hi:
I am checking with the Editors of the Prep Guide whether the screen shot is wrong or the answer is wrong.
Cynthia
Occasional Contributor
Posts: 19

Re: Is the Answer key correct? PROC PRINT Output.

Posted in reply to Cynthia_sas

Thanks, Cynthia.

SAS Super FREQ
Posts: 9,324

Re: Is the Answer key correct? PROC PRINT Output.

Posted in reply to ericliuzh1
Hi:
I heard back from the editors that D is the correct answer for this question. They will get this added to the errata. Thanks for bringing this to our attention.
Cynthia
Occasional Contributor
Posts: 19

Re: Is the Answer key correct? PROC PRINT Output.

Posted in reply to Cynthia_sas

Thank you, Cynthia.

Ask a Question
Discussion stats
  • 8 replies
  • 138 views
  • 7 likes
  • 4 in conversation