楼主: 蜻蜓点水
4221 5

[SAS] SAS BASE 归来, 话复习中没有遇到过的考题 [推广有奖]

  • 1关注
  • 20粉丝

VIP+

已卖:4863份资源

教授

86%

还不是VIP/贵宾

-

威望
2 级
论坛币
34038 个
通用积分
52.2352
学术水平
34 点
热心指数
44 点
信用等级
19 点
经验
15555 点
帖子
371
精华
0
在线时间
1860 小时
注册时间
2005-5-8
最后登录
2025-10-24

楼主
蜻蜓点水 发表于 2008-3-22 13:40:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
<p class="MsoNormal" style="MARGIN: 0in 0in 0pt;"><font size="3"><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">感觉</span><font face="Times New Roman">70</font><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">道题中有至少有</span><font face="Times New Roman">40</font><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">道是</span><font face="Times New Roman">123</font><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-fareast-font-family: 'Times New Roman'; mso-bidi-font-family: 'Times New Roman';">题库中的。题库中出现的这里就不重复了,现就把我复习中没有遇到过的我能记得的考题列出来</span><font face="Times New Roman">, </font><span style="FONT-FAMILY: Batang; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">希望</span><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">对大家有帮助。(真实中的data 和变量名等忘了,我只把框架摆出来)</span></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt;"><font size="3"><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';"></span><span style="mso-fareast-font-family: 'Arial Unicode MS';"><p></p></span></font></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l2 level1 lfo1; tab-stops: list .25in;"><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">1.</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><font size="3">proc print;</font></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.25in; TEXT-INDENT: 0.25in;"><font face="Times New Roman" size="3">by type breed;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">sum number;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">run;</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">Q: what’s the SUM is used for?&nbsp;</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><ol type="1" start="2" style="MARGIN-TOP: 0in;"><li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l2 level1 lfo1; tab-stops: list .5in;"><font face="Times New Roman" size="3">To print a summary of all the files stored in the library named SASUSER, using</font></li></ol><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">PROC CONTENTS DATA=SASUSER._ALL_ or PROC CONTENTS LIB=SASUSER._ALL_?</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><ol type="1" start="3" style="MARGIN-TOP: 0in;"><li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l2 level1 lfo1; tab-stops: list .5in;"><font face="Times New Roman" size="3">dataset A has variable locationfee with format dollar9. and dataset B has variable countryfee with format dollar6.</font><font face="Times New Roman" size="3">&nbsp;</font></li></ol><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">Data realeastate;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: 0.25in;"><font face="Times New Roman" size="3">format locationfee countryfee dollar6.;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">set A B;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">locationfee=locationfee/100;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">countryfee=countryfee/100;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">run;</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">Q: What is the format look like for locationfee and countryfee?</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt;"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>4.</font></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">DATA TWO</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">X<span style="mso-spacerun: yes;">&nbsp; </span>Y<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp; </span>Z</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">1<span style="mso-spacerun: yes;">&nbsp; </span>A<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span>27</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">1<span style="mso-spacerun: yes;">&nbsp; </span>A<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span>53</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font size="3"><font face="Times New Roman">2<span style="mso-spacerun: yes;">&nbsp; </span>A<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span>number1 /</font><span style="FONT-FAMILY: Batang; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">忘了</span><span style="mso-fareast-font-family: Batang;"><font face="Times New Roman">/</font></span></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font size="3"><span style="mso-fareast-font-family: Batang;"></span></font><font face="Times New Roman" size="3">2<span style="mso-spacerun: yes;">&nbsp; </span>B<span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp; </span>number2</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in; tab-stops: 116.25pt;"><font face="Times New Roman" size="3">3<span style="mso-spacerun: yes;">&nbsp; </span>A<span style="mso-spacerun: yes;">&nbsp; </span>number3</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">4<span style="mso-spacerun: yes;">&nbsp; </span>A<span style="mso-spacerun: yes;">&nbsp; </span>number4</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">4<span style="mso-spacerun: yes;">&nbsp; </span>B<span style="mso-spacerun: yes;">&nbsp; </span>number5</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in;"></p><p><font face="Times New Roman" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><font face="Times New Roman" size="3">data one;</font><font face="Times New Roman" size="3">&nbsp;&nbsp; Set two;&nbsp;&nbsp;&nbsp;&nbsp; </font><font face="Times New Roman" size="3">By x y;&nbsp;&nbsp;&nbsp; </font><font face="Times New Roman" size="3">If first.y; run;</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0.5in;"><font face="Times New Roman" size="3">Q; What’s the output look like?</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><ol type="1" start="5" style="MARGIN-TOP: 0in;"><li class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-list: l3 level1 lfo4; tab-stops: list .5in;"><font face="Times New Roman" size="3">A dataset has two variables, A and B where B is character variable</font></li></ol><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">A B</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3"></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">X 1</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">Y 2</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in;"><font face="Times New Roman" size="3">Z 3</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp; </span>Q:<span style="mso-spacerun: yes;">&nbsp; </span>What’s the result after submitting <span style="mso-spacerun: yes;">&nbsp;</span>“proc print…;where B&lt;2”? /**notice B is not numeric**/</font></font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none;"><font size="3"><font face="Times New Roman"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span>6.<span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp; </span>data look like this (虚构的数据)</font></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">Name SSN</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">A 111111111 </font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">B 222222222</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">C 333333333&nbsp;</font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">data xxx;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">set yyy;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font size="3"><font face="Times New Roman">file 'file-sepcification'<b>;<p></p></b></font></font></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">put A B;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">&lt;insert put statement here&gt;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><font face="Times New Roman" size="3">Run;</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt;"></p><p><font face="Times New Roman" size="3">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font><span style="mso-fareast-font-family: Batang;"><font size="3"><font face="Times New Roman">Q: How can you make the double-spaced outuput like <p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><span style="mso-fareast-font-family: Batang;"><p><font face="Times New Roman" size="3">&nbsp;</font></p></span></p><p><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">Name SSN</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">A 111111111 </font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"></p><p><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">B 222222222</font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"></p><p><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><font face="Times New Roman" size="3">C 333333333 </font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><span style="mso-fareast-font-family: Batang;"><p><font face="Times New Roman" size="3">&nbsp;</font></p></span></p><p><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2; tab-stops: list .75in;"><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">a)</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="mso-fareast-font-family: Batang;"><font size="3">put double;<p></p></font></span></font></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2; tab-stops: list .75in;"><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">b)</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="mso-fareast-font-family: Batang;"><font size="3">put;<p></p></font></span></font></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.75in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo2; tab-stops: list .75in;"><font face="Times New Roman"><span style="BACKGROUND: yellow; mso-highlight: yellow;"><span style="mso-list: Ignore;"><font size="3">c)</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="BACKGROUND: yellow; mso-fareast-font-family: Batang; mso-highlight: yellow;"><font size="3">put /; <p></p></font></span></font></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in;"><span style="mso-fareast-font-family: Batang;"><p><font face="Times New Roman" size="3">&nbsp;</font><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">7.</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><font size="3">User defined format should be stored in </font></font></p></span></p><p><font face="Times New Roman" size="3">&nbsp;</font><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">7.</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><font size="3">User defined format should be stored in </font></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo3; tab-stops: list 1.0in;"><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">a)</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><font size="3">catalog</font></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo3; tab-stops: list 1.0in;"><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">b)</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><font size="3">work library</font></font></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo3; tab-stops: list 1.0in;"><font face="Times New Roman"><span style="mso-list: Ignore;"><font size="3">c)</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><font size="3">permanent library</font></font><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level2 lfo3; tab-stops: list .25in .5in; mso-layout-grid-align: none;"><font face="Times New Roman"><span style="COLOR: black;"><span style="mso-list: Ignore;"><font size="3">8</font><span style="FONT: 7pt &quot;Times New Roman&quot;;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span></span><span style="COLOR: black;"><font size="3">data one has two variables var 1 and var2, the questions is asking you what’s wrong with the following codes<p></p></font></span></font></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1.5in; mso-layout-grid-align: none;"><span style="COLOR: black;"><font size="3"><font face="Times New Roman">data two;<p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1.5in; mso-layout-grid-align: none;"><span style="COLOR: black;"><font size="3"><font face="Times New Roman">set one (keep=v1 v2 v3);<p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1.5in; mso-layout-grid-align: none;"><span style="COLOR: black;"><font size="3"><font face="Times New Roman">v3=v1+ v2;<p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1.5in; mso-layout-grid-align: none;"><span style="COLOR: black;"><font size="3"><font face="Times New Roman">run;<p></p></font></font></span></p><p></p><p></p><ol type="1" start="6" style="MARGIN-TOP: 0in;"><li class="MsoNormal" style="MARGIN: 0in 0in 0pt; COLOR: black; mso-list: l3 level1 lfo4; tab-stops: list .5in; mso-layout-grid-align: none;"><font size="3"><span style="FONT-FAMILY: Batang; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">最后就是一些</span><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">论坛中已经提到过的</span><span style="mso-fareast-font-family: 'Arial Unicode MS';"><font face="Times New Roman">find, transwrd, catx, </font></span><span style="FONT-FAMILY: &quot;Arial Unicode MS&quot;; mso-bidi-font-family: 'Times New Roman'; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman';">的用法, 比如</span><span style="mso-fareast-font-family: 'Arial Unicode MS';"><p></p></span></font></li></ol><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="COLOR: black; mso-fareast-font-family: 'Arial Unicode MS';"><font size="3"><font face="Times New Roman">AA=”DRIVE”;<p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="COLOR: black; mso-fareast-font-family: 'Arial Unicode MS';"><font size="3"><font face="Times New Roman">B=TRANWRD(“8901 LONDON DRIVE”, AA, “WAY”) <p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="COLOR: black; mso-fareast-font-family: 'Arial Unicode MS';"><font size="3"><font face="Times New Roman">Q:&nbsp;What’s the output for B?</font></font></span><span style="COLOR: black; mso-fareast-font-family: 'Arial Unicode MS';"><font face="Times New Roman" size="3">&nbsp;</font></span></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman"><span style="mso-tab-count: 1;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 和</span></font></font></span></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman"><p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman">Liu <p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman">Isbella<p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none;"><font size="3"><font face="Times New Roman"><country-region wst="on"></country-region><place wst="on"></place><span style="mso-fareast-language: ZH-CN;">Ireland</span><place></place><country-region></country-region><span style="mso-fareast-language: ZH-CN;"><p></p></span></font></font></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 1in; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman">Lanei</font></font></span><span style="mso-fareast-language: ZH-CN;"><font face="Times New Roman" size="3">&nbsp;</font></span></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman">Proc print; <p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman">where name like (_i%);<p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman">run;</font></font></span><span style="mso-fareast-language: ZH-CN;"><font face="Times New Roman" size="3">&nbsp;</font></span></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="mso-fareast-language: ZH-CN;"><font size="3"><font face="Times New Roman">Q: What's the output for name? <p></p></font></font></span></p><p></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt 0.5in; mso-layout-grid-align: none;"><span style="COLOR: black; mso-fareast-font-family: 'Arial Unicode MS';"><p><font face="Times New Roman" size="3">&nbsp;</font></p></span></p><p><font face="Times New Roman" size="3">&nbsp;</font></p><p></p><p class="MsoNormal" style="MARGIN: 0in 0in 0pt; mso-layout-grid-align: none;"></p><p><font face="Times New Roman" size="3">&nbsp;</font></p><p></p>

[此贴子已经被作者于2008-3-22 13:43:13编辑过]

二维码

扫码加我 拉你入群

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

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

关键词:SAS base Base Variables Character Location 复习 SAS 考题 Base

沙发
bioman82 发表于 2008-3-22 14:43:00
<p>这样的好贴怎能不顶?!</p><p></p>

藤椅
eijuhz 发表于 2008-3-22 15:09:00
给予奖励!

板凳
hesummar 发表于 2008-3-25 11:21:00
谢谢分享。。。谢谢!

报纸
bjszt107 发表于 2008-4-6 02:35:00
1,Answer : sum is the total value of number variable and note that it&nbsp;has been&nbsp;grouped by type and&nbsp;breed .<br/>

地板
fabuover 发表于 2008-4-6 19:09:00
或许有用

您需要登录后才可以回帖 登录 | 我要注册

客服
GMT+8, 2026-12-1 19:53