<?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: SAS reading in and writing out empty table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495332#M130711</link>
    <description>&lt;P&gt;Well, given that you're not hitting a library at all, but an empty table, I'm guessing the table references is actually empty then.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you want as output from reading an empty table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233113"&gt;@Paulnf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;HI Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I described the issue wrongly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code above is what I ran, and there were no error or warning messages in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the log, 0 records were read and zero records were written out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 14:50:06 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-09-13T14:50:06Z</dc:date>
    <item>
      <title>SAS reading in and writing out empty table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495295#M130688</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a quick question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to extract some fields from a table using SQL passthrough for SAS. The table is a Teradata table, and I have checked the table on Teradata and it contains records. However, when I extract the table in SAS, SAS returns an empty table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log reads:&lt;/P&gt;&lt;P&gt;NOTE: There were 0 observations read from the data set XXXX.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please does anyone understand why SAS retrieves zero rows, and how I can fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495295#M130688</guid>
      <dc:creator>Paulnf</dc:creator>
      <dc:date>2018-09-13T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in and writing out empty table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495298#M130690</link>
      <description>&lt;P&gt;you need to give some more information, your sample code and are you using where clause and other details then someone call help you.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:16:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495298#M130690</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-09-13T14:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in and writing out empty table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495300#M130691</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233113"&gt;@Paulnf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi guys,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a quick question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have been trying to extract some fields from a table using SQL passthrough for SAS. The table is a Teradata table, and I have checked the table on Teradata and it contains records. However, when I extract the table in SAS, SAS returns an empty table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Log reads:&lt;/P&gt;
&lt;P&gt;NOTE: There were 0 observations read from the data set XXXX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please does anyone understand why SAS retrieves zero rows, and how I can fix this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you show the code you used may get a better targeted response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely causes if you include any WHERE clauses that no records met the conditions specified; if there were any joins then no records met the join criteria specified.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:17:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495300#M130691</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-09-13T14:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in and writing out empty table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495301#M130692</link>
      <description>&lt;P&gt;Its a basic data step. No conditional statements&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; nn;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; xxx(&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;obs&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:19:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495301#M130692</guid>
      <dc:creator>Paulnf</dc:creator>
      <dc:date>2018-09-13T14:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in and writing out empty table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495320#M130703</link>
      <description>&lt;P&gt;Your original post:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;I have been trying to extract some fields from a table using &lt;STRONG&gt;SQL passthrough for SAS&lt;/STRONG&gt;. The table is a Teradata table, and I have checked the table on Teradata and it contains records. However, when I extract the table in SAS, SAS returns an empty table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Your code doesn't match your original post and what you said you were doing, so is this a different question entirely?&lt;BR /&gt;What does your log show for your actual code?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:44:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495320#M130703</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-13T14:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in and writing out empty table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495330#M130709</link>
      <description>&lt;P&gt;HI Reeza,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I described the issue wrongly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code above is what I ran, and there were no error or warning messages in the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;According to the log, 0 records were read and zero records were written out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495330#M130709</guid>
      <dc:creator>Paulnf</dc:creator>
      <dc:date>2018-09-13T14:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS reading in and writing out empty table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495332#M130711</link>
      <description>&lt;P&gt;Well, given that you're not hitting a library at all, but an empty table, I'm guessing the table references is actually empty then.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you want as output from reading an empty table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233113"&gt;@Paulnf&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;HI Reeza,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I described the issue wrongly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code above is what I ran, and there were no error or warning messages in the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;According to the log, 0 records were read and zero records were written out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 14:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-reading-in-and-writing-out-empty-table/m-p/495332#M130711</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-13T14:50:06Z</dc:date>
    </item>
  </channel>
</rss>

