<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: OBS/FIRST OBS in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/OBS-FIRST-OBS/m-p/900198#M40113</link>
    <description>&lt;PRE&gt; 70         SETSASHelp.Cars(FIRSTOBS = 70OBS = 10);
 ERROR: FIRSTOBS option &amp;gt; OBS option - no data to read from file SASHELP.CARS.&lt;/PRE&gt;
&lt;P&gt;There are two problems here ... first is that there is no space after FIRSTOBS=70 (although strangely that doesn't seem to be an error)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second is explained by the ERROR message. You can't have FIRSTOBS &amp;gt; OBS, so &lt;FONT color="#FF0000"&gt;you must have OBS to be greater than or equal to FIRSTOBS&lt;/FONT&gt;. With that hint, what do you think OBS should be here?&lt;/P&gt;</description>
    <pubDate>Thu, 26 Oct 2023 19:07:50 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-10-26T19:07:50Z</dc:date>
    <item>
      <title>OBS/FIRST OBS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/OBS-FIRST-OBS/m-p/900197#M40112</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a new SAS coder working on a homework problem that has stumped me. The question is:&amp;nbsp;Write SAS code which will read in 10 observations from the ‘SASHelp.Cars’ data set, starting with the 70th observation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code I wrote for my answer:&lt;/P&gt;&lt;P&gt;DATA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WORK.Illus;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET&amp;nbsp; SASHelp.Cars (FIRSTOBS = 70 OBS = 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I run this code, my log gives me an error and two warnings:&lt;/P&gt;&lt;PRE&gt; Errors (1)
 Warnings (2)
 Notes (2)
 
 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         DATAWORK.Illus;
 70         SETSASHelp.Cars(FIRSTOBS = 70OBS = 10);
 ERROR: FIRSTOBS option &amp;gt; OBS option - no data to read from file SASHELP.CARS.
 71         RUN;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.ILLUS may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
 WARNING: Data set WORK.ILLUS was not replaced because this step was stopped.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              530.93k
       OS Memory           21152.00k
       Timestamp           10/26/2023 07:03:03 PM
       Step Count                        42  Switch Count  0
       Page Faults                       0
       Page Reclaims                     52
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 72         
 73         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 83 &lt;/PRE&gt;&lt;P&gt;What am I missing? Thanks for any help.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 19:04:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/OBS-FIRST-OBS/m-p/900197#M40112</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-10-26T19:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: OBS/FIRST OBS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/OBS-FIRST-OBS/m-p/900198#M40113</link>
      <description>&lt;PRE&gt; 70         SETSASHelp.Cars(FIRSTOBS = 70OBS = 10);
 ERROR: FIRSTOBS option &amp;gt; OBS option - no data to read from file SASHELP.CARS.&lt;/PRE&gt;
&lt;P&gt;There are two problems here ... first is that there is no space after FIRSTOBS=70 (although strangely that doesn't seem to be an error)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second is explained by the ERROR message. You can't have FIRSTOBS &amp;gt; OBS, so &lt;FONT color="#FF0000"&gt;you must have OBS to be greater than or equal to FIRSTOBS&lt;/FONT&gt;. With that hint, what do you think OBS should be here?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 19:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/OBS-FIRST-OBS/m-p/900198#M40113</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-26T19:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: OBS/FIRST OBS</title>
      <link>https://communities.sas.com/t5/New-SAS-User/OBS-FIRST-OBS/m-p/900199#M40114</link>
      <description>&lt;P&gt;Oh! 79? FIRST OBS = 70, +9 gives me 10 observations. Got it. Thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Oct 2023 19:11:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/OBS-FIRST-OBS/m-p/900199#M40114</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-10-26T19:11:11Z</dc:date>
    </item>
  </channel>
</rss>

