<?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: ODBC fields formatting different in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126294#M1640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, for example you can run SQL code on SAS datasets that aren't on a SQL server so definitely not Pass-Thru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass Through will submit SQL code to your server, so the DBMS type is important. It can be more efficient because work is then done on the server not on your computer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 19:11:24 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2013-10-28T19:11:24Z</dc:date>
    <item>
      <title>ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126284#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a quirk -&lt;/P&gt;&lt;P&gt;last week I asked how to change a format on a timestamp field from $26. to date and you guys were awesome with that answer...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i moved the program to my remote desktop to let it run over there and not tie up my laptop.&lt;/P&gt;&lt;P&gt;BUT...&lt;/P&gt;&lt;P&gt;when i run the program on my remote desktop it actually sees that field as a date/time and not as the character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exact same code (litterally copied and pasted the .sas file from one drive to another)&lt;/P&gt;&lt;P&gt;Exact same tables (ODBC connection)&lt;/P&gt;&lt;P&gt;Exact same program (SAS 9.2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing that changed was the computer i'm running it on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone experienced this?&lt;/P&gt;&lt;P&gt;Why is it doing this?&lt;/P&gt;&lt;P&gt;is there a setting to change on the remote so i don't have to rewrite my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 16:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126284#M1630</guid>
      <dc:creator>SVoldrich</dc:creator>
      <dc:date>2013-10-28T16:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126285#M1631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suspect that the ODBC driver versions may differ, especially if different versions of the OS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126285#M1631</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2013-10-28T18:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126286#M1632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;nope.&lt;/P&gt;&lt;P&gt;exact same driver, exact same OS (Win7)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126286#M1632</guid>
      <dc:creator>SVoldrich</dc:creator>
      <dc:date>2013-10-28T18:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126287#M1633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post the SAS logs from a run on each machine?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:20:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126287#M1633</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2013-10-28T18:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126288#M1634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the driver totally makes sense... but i've checked it 3 times now...&lt;/P&gt;&lt;P&gt;It won't let me paste - but here is the issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I do proc sql; describe table [table]; quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get what you would expect when I run the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: SQL table [table] was created like:&lt;/P&gt;&lt;P&gt;create table [table] (&lt;/P&gt;&lt;P&gt;and then it lists the fields as it should.&lt;/P&gt;&lt;P&gt;everything matches except for this field:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my remote desktop i get this:&lt;/P&gt;&lt;P&gt;ACTY_TMSTP num format=DATETIME25.6 informat=DATETIME25.6 label='ACTY_TMSTP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On my laptop i get this:&lt;/P&gt;&lt;P&gt;ACTY_TMSTP char(26) format=$26. informat=$26. label='ACTY_TMSTP'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, this is the field I am working with. I wrote code to compare this date with others - so now to run it on the remote desktop i need to change the code...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 18:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126288#M1634</guid>
      <dc:creator>SVoldrich</dc:creator>
      <dc:date>2013-10-28T18:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126289#M1635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use a browser other than IE to paste or paste into text file then into the editor here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 19:00:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126289#M1635</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-28T19:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126290#M1636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on your code you may want to consider Pass - Thru SQL instead which shouldn't have that issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 19:02:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126290#M1636</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-28T19:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126291#M1637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, our office only uses IE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 19:02:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126291#M1637</guid>
      <dc:creator>SVoldrich</dc:creator>
      <dc:date>2013-10-28T19:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126292#M1638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't that what proc sql is? (pass thru?)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 19:04:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126292#M1638</guid>
      <dc:creator>SVoldrich</dc:creator>
      <dc:date>2013-10-28T19:04:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126293#M1639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PROC SQL will allow you to enter SAS SQL code or explicitly pass DBMS-specific code to the database.&lt;/P&gt;&lt;P&gt;What is your target database?&amp;nbsp; Which ODBC driver are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy your SAS logs to a text editor (Notepad) then high-light that text and re-copy it. You should be able to paste it into the Communities site.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 19:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126293#M1639</guid>
      <dc:creator>JBailey</dc:creator>
      <dc:date>2013-10-28T19:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: ODBC fields formatting different</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126294#M1640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, for example you can run SQL code on SAS datasets that aren't on a SQL server so definitely not Pass-Thru.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass Through will submit SQL code to your server, so the DBMS type is important. It can be more efficient because work is then done on the server not on your computer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 19:11:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/ODBC-fields-formatting-different/m-p/126294#M1640</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-10-28T19:11:24Z</dc:date>
    </item>
  </channel>
</rss>

