Click on the Comments to view the Answers

Friday, January 22, 2010

SAS 4

Which of the following statements are correct when using the RETAIN
statement?

A) Variables read with the SET statement will not be affected by the
RETAIN statement
B) The RETAIN statement is used when a variable needs to be
initialized to a value of 0
C) Variables will be initialized to the desired value each time the DATA
step is executed
D) Variables are created during execution

2 comments:

SASGuru said...

Answer: A
Reasoning: The RETAIN statement is used when a variable needs to
be initialized to a value other than 0. The statement will prevent
variables from being initialized. All of this is done during the
compilation stage, not the execution stage. Variables that are read
with the SET, MERGE, and UPDATE statements are not affected by
the RETAIN statement.

SAS Training India said...

I agree, During the compilation stage, a variable needs to be initialized to a natural no other than zero,for this the Retain statement is used//
I will prvide 4.5 rating for these question related to SAS certification...Amazing

Post a Comment



Technology Top Blogs On our way to 1,000,000 rss feeds - millionrss.com Hihera.com Blog Directory - OnToplist.com blogarama - the blog directory Blog Directory
Disclaimer

SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.

Other brand and product names are trademarks of their respective companies.

This blog is not responsible for any kind of copyright violation. This blog just collects the links hosted or posted by other servers/people/search engines.The creator of this page or the ISP(s) hosting any content on this site take no responsibility for the way you use the information provided on this site.If anybody has any copyright claim on it and doesn’t wish the information provided to be shown on our site, please do respond to this email. We shall remove them off immediately. Any inconvenience is regretted. Please do mention your exact grievance/problems with respect to certain third party links. We assure you that appropriate action will be taken off. Thank you