|
<B><FONT face="Courier New" color=#000080 size=2>
<P>**nobs = all nobs=last help you to create a logical variable called 'all' or 'last', it doesn't matter what you want to call it. If you don't create a newvariable using this logical variable, it will never show up. If you want to use it, you can create a new variable called 'totalpeople' and the results are same:</P>
<P>totalpeople=all</P>
<P>totalpeople=last</P>
<P>**************************************************;</P>
<P>data test1;</P>
<P>input x;</P>
<P>cards;</P>
<P>3.3</P>
<P>5</P>
<P>0.6</P>
<P>11</P>
<P>608</P>
<P>;</P>
<P>run;</P></B></FONT><FONT face="Courier New" size=2>
<P>data<FONT face="Courier New" size=2> test2;</P></FONT><FONT face="Courier New" color=#0000ff size=2>
<P>set</FONT><FONT face="Courier New" size=2> test nobs=all;</FONT></P>
<P>totalpeople=all;</P>
<P><B><FONT face="Courier New" color=#000080 size=2>run</B></FONT><FONT face="Courier New" size=2>;</P></FONT></FONT><B><FONT face="Courier New" color=#000080 size=2>
<P>proc</B></FONT><FONT face="Courier New" size=2> </FONT><B><FONT face="Courier New" color=#000080 size=2>print</B></FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>data</FONT><FONT face="Courier New" size=2>=test2;</P></FONT><B><FONT face="Courier New" color=#000080 size=2>
<P>run</B></FONT><FONT face="Courier New" size=2>;<STRONG><FONT color=#000080> </FONT></STRONG><FONT face="Courier New" size=2></P>
<P>data<FONT face="Courier New" size=2> test3;</P></FONT><FONT face="Courier New" color=#0000ff size=2>
<P>set</FONT><FONT face="Courier New" size=2> test nobs=last;</FONT></P>
<P>totalpeople=last;</P>
<P><B><FONT face="Courier New" color=#000080 size=2>run</B></FONT><FONT face="Courier New" size=2>;</P></FONT></FONT><B><FONT face="Courier New" color=#000080 size=2>
<P>proc</B></FONT><FONT face="Courier New" size=2> </FONT><B><FONT face="Courier New" color=#000080 size=2>print</B></FONT><FONT face="Courier New" size=2> </FONT><FONT face="Courier New" color=#0000ff size=2>data</FONT><FONT face="Courier New" size=2>=test3;</P></FONT><B><FONT face="Courier New" color=#000080 size=2>
<P>run</B></FONT><FONT face="Courier New" size=2>;</P></FONT></FONT>
|