<?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 proc sql in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301568#M60623</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to figure out this one but I cannot come up with anything to fix this error, since I am not a SAS expert, could someone explain this one so I can correct it?.... By the way, this is the first error of the log...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table ql_a&amp;amp;currioyr. as&lt;/P&gt;&lt;P&gt;select a.*, b.io2_proval, c.io3_pi&lt;BR /&gt;from tempsas.io1_a&amp;amp;currioyr&lt;BR /&gt;join tempsas.io2_a&amp;amp;currioyr&lt;BR /&gt;on a.item_id = b.item_id and a.itemACPSA = b.itemACPSA&lt;BR /&gt;join tempsas.io3_a&amp;amp;currioyr&lt;BR /&gt;on b.item_id = c.item_id and b.itemACPSA = c.itemACPSA&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MPRINT(PRICE_SERIES): proc sql;&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;MPRINT(PRICE_SERIES): create table ql_a2012 as select a.*, b.io2_proval, c.io3_pi from tempsas.io1_a2012 join&lt;BR /&gt;tempsas.io2_a2012 on a.item_id = b.item_id and a.itemACPSA = b.itemACPSA join tempsas.io3_a2012 on b.item_id = c.item_id&lt;BR /&gt;and b.itemACPSA = c.itemACPSA ;&lt;BR /&gt;ERROR: File TEMPSAS.IO1_A2012.DATA does not exist.&lt;BR /&gt;ERROR: File TEMPSAS.IO2_A2012.DATA does not exist.&lt;BR /&gt;ERROR: File TEMPSAS.IO3_A2012.DATA does not exist.&lt;BR /&gt;MPRINT(PRICE_SERIES): quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Sep 2016 17:33:34 GMT</pubDate>
    <dc:creator>Afor910327</dc:creator>
    <dc:date>2016-09-29T17:33:34Z</dc:date>
    <item>
      <title>proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301568#M60623</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have been trying to figure out this one but I cannot come up with anything to fix this error, since I am not a SAS expert, could someone explain this one so I can correct it?.... By the way, this is the first error of the log...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table ql_a&amp;amp;currioyr. as&lt;/P&gt;&lt;P&gt;select a.*, b.io2_proval, c.io3_pi&lt;BR /&gt;from tempsas.io1_a&amp;amp;currioyr&lt;BR /&gt;join tempsas.io2_a&amp;amp;currioyr&lt;BR /&gt;on a.item_id = b.item_id and a.itemACPSA = b.itemACPSA&lt;BR /&gt;join tempsas.io3_a&amp;amp;currioyr&lt;BR /&gt;on b.item_id = c.item_id and b.itemACPSA = c.itemACPSA&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MPRINT(PRICE_SERIES): proc sql;&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;SYMBOLGEN: Macro variable CURRIOYR resolves to 2012&lt;BR /&gt;MPRINT(PRICE_SERIES): create table ql_a2012 as select a.*, b.io2_proval, c.io3_pi from tempsas.io1_a2012 join&lt;BR /&gt;tempsas.io2_a2012 on a.item_id = b.item_id and a.itemACPSA = b.itemACPSA join tempsas.io3_a2012 on b.item_id = c.item_id&lt;BR /&gt;and b.itemACPSA = c.itemACPSA ;&lt;BR /&gt;ERROR: File TEMPSAS.IO1_A2012.DATA does not exist.&lt;BR /&gt;ERROR: File TEMPSAS.IO2_A2012.DATA does not exist.&lt;BR /&gt;ERROR: File TEMPSAS.IO3_A2012.DATA does not exist.&lt;BR /&gt;MPRINT(PRICE_SERIES): quit;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301568#M60623</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2016-09-29T17:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301569#M60624</link>
      <description>&lt;P&gt;The error is pretty straightforward. SAS can't find the data set, the tempSAS.io1_a2012.&lt;/P&gt;
&lt;P&gt;Is the dataset named correctly? Is it in the correct library?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:36:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301569#M60624</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-09-29T17:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301582#M60626</link>
      <description>&lt;P&gt;SInce you're asking the question, I suspect you will need a little more guidance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To understand the program, you have to realize that wherever "&amp;amp;currioyr." appears, it will get replaced by "2012".&amp;nbsp; That's why the program is trying to locate tempsas.io1_a2012, tempsas.io2_a2012, and tempsas.io3_a2012.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The first debugging step is to locate a statement that begins like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;libname tempsas .......;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a look in the folder described by that statement, and see what data sets it contains.&amp;nbsp; It may be that you have a totally wrong folder, or it may be that the folder is the right one but doesn't have any 2012 data sets in it, or it may be a slight misspelling, such as data sets named io1_a_2012 instead of io1_a2012.&amp;nbsp; But look at what is in there.&amp;nbsp; If it's totally the wrong folder, you will need to find the folder that contains the data sets io1_a2012, io2_a2012, and io3_a2012.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If by some chance you are working with a database, the idea is the same.&amp;nbsp; Just look for a schema instead of a folder.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 17:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301582#M60626</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-09-29T17:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301587#M60628</link>
      <description>&lt;P&gt;It is named correctly, I can see it in the library but I do not know why in the world it does not find it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 18:15:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301587#M60628</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2016-09-29T18:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301588#M60629</link>
      <description>&lt;P&gt;Thank you so much Astounding!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Sep 2016 18:17:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-sql/m-p/301588#M60629</guid>
      <dc:creator>Afor910327</dc:creator>
      <dc:date>2016-09-29T18:17:48Z</dc:date>
    </item>
  </channel>
</rss>

