<?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: Trying to only print certain files from imported data error messages in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-only-print-certain-files-from-imported-data-error/m-p/246724#M46202</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/70676"&gt;@MadQuidd&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;56 proc print data=problem4a (firstobs=131 obs=48);&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR: FIRSTOBS option &amp;gt; OBS option - no data to read from file WORK.PROBLEM4A.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The&amp;nbsp;OBS value specifies the last observation that SAS processes in a data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in order to do what you want let it be like&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;print&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;problem4a &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;firstobs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;131&lt;/SPAN&gt; obs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;179&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jan 2016 18:53:27 GMT</pubDate>
    <dc:creator>mohamed_zaki</dc:creator>
    <dc:date>2016-01-28T18:53:27Z</dc:date>
    <item>
      <title>Trying to only print certain files from imported data error messages</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-only-print-certain-files-from-imported-data-error/m-p/246717#M46200</link>
      <description>&lt;P&gt;I am trying to print observations 131-179 in the data set but keep getting an error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;55&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;56 proc print data=problem4a (firstobs=131 obs=48);&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: FIRSTOBS option &amp;gt; OBS option - no data to read from file WORK.PROBLEM4A.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;57 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.01 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class="sasSource"&gt;58&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;59 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;the above error is what appears after putting the following code into sas.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;BR /&gt;FILENAME CSV "/folders/myfolders/homeworkdata/diamond.csv" TERMSTR=CRLF;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/** Import the CSV file. **/&lt;BR /&gt;&lt;BR /&gt;PROC IMPORT DATAFILE=CSV&lt;BR /&gt;OUT=problem4a&lt;BR /&gt;DBMS=CSV&lt;BR /&gt;REPLACE;&lt;BR /&gt;guessingrows = 1000;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;/** Print the results. **/&lt;BR /&gt;&lt;BR /&gt;PROC PRINT DATA=problem4a; RUN;&lt;BR /&gt;&lt;BR /&gt;/** Unassign the file reference. **/&lt;BR /&gt;&lt;BR /&gt;FILENAME CSV;&lt;BR /&gt;&lt;BR /&gt;proc print data=problem4a (firstobs=131 obs=48);&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;any help is greatly appreciated.&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 28 Jan 2016 18:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-only-print-certain-files-from-imported-data-error/m-p/246717#M46200</guid>
      <dc:creator>MadQuidd</dc:creator>
      <dc:date>2016-01-28T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Trying to only print certain files from imported data error messages</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Trying-to-only-print-certain-files-from-imported-data-error/m-p/246724#M46202</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/70676"&gt;@MadQuidd&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV class="sasSource"&gt;56 proc print data=problem4a (firstobs=131 obs=48);&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;ERROR: FIRSTOBS option &amp;gt; OBS option - no data to read from file WORK.PROBLEM4A.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The&amp;nbsp;OBS value specifies the last observation that SAS processes in a data set.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in order to do what you want let it be like&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;print&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;problem4a &lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;firstobs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;131&lt;/SPAN&gt; obs&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;179&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 18:53:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Trying-to-only-print-certain-files-from-imported-data-error/m-p/246724#M46202</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2016-01-28T18:53:27Z</dc:date>
    </item>
  </channel>
</rss>

