全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学
27217 130
2008-03-15
<p></p><p>
198271.pdf
大小:(1.22 MB)

 马上下载

</p><p></p><p></p><p>&nbsp;</p><p></p><p></p><p></p><p></p><p>&nbsp;</p><p></p><p>SAS认证220道<br/>&nbsp;&nbsp;练习题及详细答案, 题目覆盖了所有SAS BASE 考试所涉及到的范围。 </p><p></p><p></p><p>例子1 </p><p></p><p></p><p>Suppose the YEARCUTOFF= system option is set to 1920. An input file contains the date expression 12/08/1925, which is being read with the MMDDYY8. informat. Which date will appear in your data? </p><p></p><p></p><p>a.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08DEC1920 </p><p></p><p></p><p>b.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08DEC1925 </p><p></p><p></p><p>c.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 08DEC2019 </p><p></p><p></p><p>d. &nbsp; 08DEC2025<br/>&nbsp;&nbsp;&nbsp;&nbsp; </p><p></p><p></p><p></p><p>&nbsp;</p><p></p><p>Correct answer: c<br/>&nbsp;&nbsp;&nbsp;&nbsp; </p><p></p><p></p><p>The w value of the informat MMDDYY8. is too small to read the entire value, so the last two digits of the year are truncated. The last two digits thus become 19 instead of 25. Because the YEARCUTOFF= system option is set to 1920, SAS interprets this year as 2019. To avoid such errors, be sure to specify an informat that is wide enough for your date expressions. </p><p></p><p></p><p></p><p>&nbsp;</p><p></p><p>例子2 </p><p></p><p></p><p>What is the length of the variable Type, as created in the DATA step below? </p><p></p><p></p>data finance.newloan;<p></p>&nbsp;&nbsp; set finance.records;<p></p>&nbsp;&nbsp; TotLoan+payment;<p></p>&nbsp;&nbsp; if code='1' then Type='Fixed';<p></p>&nbsp;&nbsp; else Type='Variable';<p></p>&nbsp;&nbsp; length type $ 10;<p></p>run;<p></p><p>a.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5 </p><p></p><p></p><p>b.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 8 </p><p></p><p></p><p>c.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10 </p><p></p><p></p><p>d.&nbsp;&nbsp; It depends on the first value of Type </p><p></p><p></p><p></p><p>&nbsp;</p><p></p><p>Correct answer: a<br/>&nbsp;&nbsp;&nbsp;&nbsp; </p><p></p><p></p><p>The length of a new variable is determined by the first reference in the DATA step, not by data values. In this case, the length of Type is determined by the value Fixed. The LENGTH statement is in the wrong place; it must be read before any other reference to the variable in the DATA step. The LENGTH statement cannot change the length of an existing variable </p><p></p><p></p><p></p>

[此贴子已经被angelboy于2008-4-25 14:58:16编辑过]

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2008-3-16 17:32:00
<p>顶</p>
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2008-3-17 14:07:00
<p>要了 !!!!!!111</p><p>再黑也要了!!!!!!!!!!</p>
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2008-3-17 20:43:00
<p>太贵了啊!!</p>
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2008-3-17 21:54:00
Dont buy it. It is&nbsp;exactly the same as the exercises&nbsp;from the base online tutoring.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2008-3-18 18:40:00
怎么看都觉得例子中的第一题有问题啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群