<?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 Format issues with Proc Sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181230#M34575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not able to troubleshoot the errors with the proc sql. I have attached the log with the error in the text file since I am not able to copy paste the code here. The question is - there is no comparison operator (eq/gt/ge) being used in this proc sql but the error says the data types being compared are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in the code the proc sql dataset _7_casecntofacct sources from qm0casecountofaccount1 (a sas proc sql view ) which in turn uses another proc sql sas view qmbcaseuseacctbycycle which has the comparison operators (=).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log does not give any errors but only says -&lt;/P&gt;&lt;P&gt;Note: sql view xxx has been defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So only when the proc sql create table is executed, does the error with the different data types show up? I hope I am making sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;saspert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2014 22:03:37 GMT</pubDate>
    <dc:creator>saspert</dc:creator>
    <dc:date>2014-02-20T22:03:37Z</dc:date>
    <item>
      <title>Format issues with Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181230#M34575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not able to troubleshoot the errors with the proc sql. I have attached the log with the error in the text file since I am not able to copy paste the code here. The question is - there is no comparison operator (eq/gt/ge) being used in this proc sql but the error says the data types being compared are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here in the code the proc sql dataset _7_casecntofacct sources from qm0casecountofaccount1 (a sas proc sql view ) which in turn uses another proc sql sas view qmbcaseuseacctbycycle which has the comparison operators (=).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The log does not give any errors but only says -&lt;/P&gt;&lt;P&gt;Note: sql view xxx has been defined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So only when the proc sql create table is executed, does the error with the different data types show up? I hope I am making sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;saspert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 22:03:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181230#M34575</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2014-02-20T22:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: Format issues with Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181231#M34576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you verified each view individually?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 22:47:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181231#M34576</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-02-20T22:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: Format issues with Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181232#M34577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAS Views are not evaluated other than for syntax at create time.&amp;nbsp; I would suspect that if you just performed a select * from the view, you would get the same error.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2014 23:25:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181232#M34577</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-02-20T23:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Format issues with Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181233#M34578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Reeza and DBailey for the suggestions. I was able to troubleshoot. I guess sas views are compiled at run time. They are executed only when a sas dataset (or in other words a materialized view) using those views is being created. Is that correct understanding?&lt;/P&gt;&lt;P&gt;The error was in a join between two different datasets using the same field but different format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 19:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181233#M34578</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2014-02-25T19:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Format issues with Proc Sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181234#M34579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2014 21:11:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Format-issues-with-Proc-Sql/m-p/181234#M34579</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-02-25T21:11:41Z</dc:date>
    </item>
  </channel>
</rss>

