Click on the Comments to view the Answers

Monday, January 25, 2010

Base 43

NOTE- Underscore represent blank space

The contents of the raw data file PRODUCT are listed below:


--------10-------20-------30
24613____$25.31


The following SAS program is submitted:


data inventory;
infile 'product';
input idnum 5. @10 price;
run;


Which one of the following is the value of the PRICE variable?


A. 25.31
B. $25.31
C. . (missing numeric value)
D. No value is stored as the program fails to execute due to errors.

9 comments:

SASGuru said...

Answer: C
Need to use the informat comma6.2 to read the value properly.
data inventory;
input idnum 5. @10 price comma6.2;
cards;
24613 $25.31
;
run;

Vikas said...

Answer is (C).
Because program creates the data set and read the first value, however, fails to read the value for price.

neurosas said...
This comment has been removed by the author.
Unknown said...

answer is A

data inventory;
input idnum 5. @10 price comma6.2;
cards;
24613 $25.31
;
run;

Unknown said...

if anybody have latest dumps of A00-211 exam, can you please share with me.

Thanks in Advance!

H. C. said...

0.31

Dutchy said...

Answer is C, becaus price has a default type, which is numeric 8 (8.). Space is converted to missing numeric.

Dutchy said...

Regarding C
If informat = Dollar6.2 or Comma6.2 then it works. In both cases, giving the same result.
So heading spaces could be concidered as numeric if you use the correct INFORMAT.

CompleteExamCollection said...

For latest and updated SAS certification dumps in PDF format contact us at completeexamcollection@gmail.com.
Refer our blog for more details
http://completeexamcollection.blogspot.in/2015/12/sas-certification-dumps.html

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