<?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: character length in proc sql versus data step in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259847#M57504</link>
    <description>&lt;P&gt;There are some SAS Notes that may ge relavant and have some things to try. &amp;nbsp;They don't fit this problem exactly, Excel instead of Access and export instead of import.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="white"&gt;&lt;DIV class="date"&gt;&lt;P&gt;2012-05-08&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result"&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/46/472.html" target="_blank"&gt;46472 - Character strings can be truncated at 255 or 1024 characters when importing Excel files into SAS®&lt;/A&gt;&lt;SPAN class="result-type"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="summary showSummary"&gt;&lt;P&gt;Character strings might be truncated at 255 or 1024 characters when importing Excel files into SAS. This can have several causes including the number of rows scanned by the Microsoft Access Connectivity Engine, the &lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/46/472.html" target="_blank"&gt;http://support.sas.com/kb/46/472.html, &lt;I&gt;&lt;FONT size="-1"&gt;25KB&lt;/FONT&gt;&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="gray"&gt;&lt;DIV class="date"&gt;&lt;P&gt;2013-07-25&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result"&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/49/017.html" target="_blank"&gt;49017 - Character strings are truncated at 255 characters when you are using the ACCESSCS driver with UTF-8 and DBCS encodings of SAS® data&lt;/A&gt;&lt;SPAN class="result-type"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="summary showSummary"&gt;&lt;P&gt;Character variables are truncated at 255 characters when you export data to MDB or ACCDB files using the ACCESSCS or PCFILES engines.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/49/017.html" target="_blank"&gt;http://support.sas.com/kb/49/017.html, &lt;I&gt;&lt;FONT size="-1"&gt;25KB&lt;/FONT&gt;&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 29 Mar 2016 18:59:35 GMT</pubDate>
    <dc:creator>Paul_OldenKamp_org</dc:creator>
    <dc:date>2016-03-29T18:59:35Z</dc:date>
    <item>
      <title>character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259427#M57466</link>
      <description>&lt;P&gt;Is it possible that creating a table with SAS proc sql will truncate a character variable at 255 characters? Does it have to do with the library engine type?&lt;/P&gt;&lt;P&gt;I'm using a PCFILES libname like this (note the dbmax_text option):&lt;/P&gt;&lt;P&gt;libname mylib PCFILES PATH = "C:\path\to\my\32bit\MS Acccess.ACCDB" dbmax_text=4000;&lt;/P&gt;&lt;P&gt;Then I do a proc sql like this:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;create table work.cbdata as&lt;BR /&gt;select&lt;BR /&gt;distinct var1,&lt;BR /&gt;var2,&lt;BR /&gt;...&lt;BR /&gt;from mylib.var2015&lt;BR /&gt;where&lt;BR /&gt;upcase(var1) = "DIQ"&lt;BR /&gt;order by var1&lt;BR /&gt;;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;`var2` is getting truncated at 255 even though it's format is listed as `$4000.` in the column property view. When I do this as a data step, all of the character data comes through:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data vardb;&lt;BR /&gt;set mylib.var2015;&lt;BR /&gt;if var1 = "DIQ";&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;I have 40-50 sql procedures like this embedded in my macro library, so I would prefer not to refactor all the macros to use data steps (if that's even possible). Does anyone know either&lt;/P&gt;&lt;P&gt;a) if there is some option in proc sql to make it respect the dbmax_text.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;b) any documentation about how SAS processes the character lengths in the create table statements of proc sql?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 18:51:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259427#M57466</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-03-28T18:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259428#M57467</link>
      <description>&lt;P&gt;on SO:&amp;nbsp;&lt;A href="http://stackoverflow.com/questions/36268835/character-length-in-data-step-versus-proc-sql" target="_blank"&gt;http://stackoverflow.com/questions/36268835/character-length-in-data-step-versus-proc-sql&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Mar 2016 18:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259428#M57467</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-03-28T18:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259492#M57469</link>
      <description>&lt;P&gt;Try telling SAS/SQL about the length you want:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint;
create table work.cbdata as
select
distinct var1,
var2 length=4000,
...&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Mar 2016 22:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259492#M57469</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-28T22:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259599#M57483</link>
      <description>&lt;P&gt;This looks like&amp;nbsp;a bug.&lt;/P&gt;&lt;P&gt;There is no reason proc sql should retrieve data that's different from what a data step fetches.&lt;/P&gt;&lt;P&gt;What does tech support say?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 05:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259599#M57483</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-03-29T05:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259609#M57487</link>
      <description>&lt;P&gt;This is a limit set by MS Access. See &lt;A href="http://webcheatsheet.com/sql/access_specification.php" target="_self"&gt;http://webcheatsheet.com/sql/access_specification.php&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;You would need to somehow persuade Access that this is a "memo" field.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit: I see that you are not writing to Access, but reading from it. Still that 255 looks suspiciously like a MS Access limit that somehow comes into play.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 08:01:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259609#M57487</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-03-29T08:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259836#M57501</link>
      <description>&lt;P&gt;When I use a data step I get a character variable that is 389 characters long.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:31:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259836#M57501</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-03-29T18:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259839#M57502</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats﻿&lt;/a&gt;&amp;nbsp;Good tip, but it doesn't seem to have any effect. This is in a `create table...as...select` clause so I'm not sure the length statement is even getting read. Maybe if I did a separate `create table` + `insert into ... select ... from`?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259839#M57502</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-03-29T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259845#M57503</link>
      <description>&lt;P&gt;I did this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;...
var2 format = $3999. length = 3998,
...&lt;/PRE&gt;&lt;P&gt;And those numbers show up in the column properties, so I think they are getting applied. However, the character string is still cut off at 255. I'll try contacting tech support.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:53:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259845#M57503</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-03-29T18:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259847#M57504</link>
      <description>&lt;P&gt;There are some SAS Notes that may ge relavant and have some things to try. &amp;nbsp;They don't fit this problem exactly, Excel instead of Access and export instead of import.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="white"&gt;&lt;DIV class="date"&gt;&lt;P&gt;2012-05-08&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result"&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/46/472.html" target="_blank"&gt;46472 - Character strings can be truncated at 255 or 1024 characters when importing Excel files into SAS®&lt;/A&gt;&lt;SPAN class="result-type"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="summary showSummary"&gt;&lt;P&gt;Character strings might be truncated at 255 or 1024 characters when importing Excel files into SAS. This can have several causes including the number of rows scanned by the Microsoft Access Connectivity Engine, the &lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/46/472.html" target="_blank"&gt;http://support.sas.com/kb/46/472.html, &lt;I&gt;&lt;FONT size="-1"&gt;25KB&lt;/FONT&gt;&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="gray"&gt;&lt;DIV class="date"&gt;&lt;P&gt;2013-07-25&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="result"&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/49/017.html" target="_blank"&gt;49017 - Character strings are truncated at 255 characters when you are using the ACCESSCS driver with UTF-8 and DBCS encodings of SAS® data&lt;/A&gt;&lt;SPAN class="result-type"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV class="summary showSummary"&gt;&lt;P&gt;Character variables are truncated at 255 characters when you export data to MDB or ACCDB files using the ACCESSCS or PCFILES engines.&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/49/017.html" target="_blank"&gt;http://support.sas.com/kb/49/017.html, &lt;I&gt;&lt;FONT size="-1"&gt;25KB&lt;/FONT&gt;&lt;/I&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259847#M57504</guid>
      <dc:creator>Paul_OldenKamp_org</dc:creator>
      <dc:date>2016-03-29T18:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259850#M57505</link>
      <description>The first one is for Excel and is using proc import so I'm not real sure what I could do with that. The second one sounds about right, but they said it was fixed in 9.3? Maybe there was a reversion? I sent in a problem to tech support.</description>
      <pubDate>Tue, 29 Mar 2016 19:05:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259850#M57505</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-03-29T19:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259960#M57508</link>
      <description>&lt;P&gt;Please keep us posted. I am curious what tech support will say about different methods yielding different results.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 04:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/259960#M57508</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-03-30T04:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260232#M57525</link>
      <description>&lt;P&gt;Over on SO, commenter recommended remove distinct and/or order by. (&lt;A href="http://stackoverflow.com/questions/36268835/character-length-in-data-step-versus-proc-sql?noredirect=1#comment60222732_36268835)" target="_blank"&gt;http://stackoverflow.com/questions/36268835/character-length-in-data-step-versus-proc-sql?noredirect=1#comment60222732_36268835)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And removing the distinct keyword works in my early testing. I have no explanation.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 21:10:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260232#M57525</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-03-30T21:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260254#M57528</link>
      <description>&lt;P&gt;Could have something to do with a MS-Access limitation. MS-Access does not support sorting on Memo (ltext longer than 255 chars) fields.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 22:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260254#M57528</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-30T22:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260275#M57533</link>
      <description>&lt;P&gt;Even if that's the reason, it's still a bug, isn't it?&lt;BR /&gt;1- Sorting has nothing to do with variable length, so it's a bad way to surface this limitation regardless at what end this happens&lt;BR /&gt;2- SAS should know this limitation and not send the order by clause in the pass-thru code&lt;BR /&gt;This could explain a&amp;nbsp;different the result in the&amp;nbsp;data step as an if statement is used there and not a where statement.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 00:54:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260275#M57533</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-03-31T00:54:33Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260289#M57534</link>
      <description>&lt;P&gt;If the bug, limitation, or feature is caused by MS-Access then proc&amp;nbsp;SQL option&amp;nbsp;NOIPASSTHRU should circumvent the problem, shouldn't it?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 02:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260289#M57534</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-31T02:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260298#M57537</link>
      <description>&lt;P&gt;It should. &lt;BR /&gt;Still a bug though, SAS should not&amp;nbsp;ask for a sort that cannot take place. And still no reason for whichever application does this&amp;nbsp;to truncate values.&lt;/P&gt;
&lt;P&gt;Another way to know if the passthrough is the culprit is to use a where clause in the data step, if I am not mistaken.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 02:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260298#M57537</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-03-31T02:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260462#M57546</link>
      <description>&lt;P&gt;&lt;EM&gt;Editor's note: This question/challenge is specific to using PROC SQL with Microsoft Access and the SAS/ACCESS to PC Files engine.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;I'm not going to start using passthrough. Then my macros would be dependent on MS Access-specific sql, which is worse than the current situation. If I have to do a re-write, I'm going to move this into data steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;The data steps work just fine with either the if statement or the where statement to select rows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've taken out the sort from SQL statement, but that does not seem to have any effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think it all comes down to how the distinct clause is implemented. Apparently, it is only wants to "distinct-ify" the first 255 characters in a DB field, so it only spits out the first 255 chars? I dunno. I've removed the distinct clause from my production macro and the first use case, seems to work with our desired behavior.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 12:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260462#M57546</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2017-07-07T12:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260468#M57547</link>
      <description>&lt;P&gt;I did not suggest to use SQL pass through. I suggested to use option&amp;nbsp;&lt;SPAN&gt;NOIPASSTHRU which &lt;U&gt;prevents&lt;/U&gt; SAS/SQL to issue implicit pass through commands to MS-Access.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 16:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260468#M57547</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-03-31T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260612#M57555</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/63303"&gt;@mattmoehr&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp;I'm not going to start using passthrough. Then my macros would be dependent on MS Access-specific sql, which is worse than the current situation. If I have to do a re-write, I'm going to move this into data steps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;But this is what actually happens. SAS hands the "distinct" over to Access so that the sorting is done within the database (default SAS behaviour when using ACCESS to Relational Databases). DATA steps don't do that, and forcing SAS to do the necessary sort by itself when using SQL should also get a clearer view on the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2016 05:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/260612#M57555</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-04-01T05:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: character length in proc sql versus data step</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/261127#M57585</link>
      <description>&lt;P&gt;Sorry, I misread your suggestion about implicit pass through. I will try to test that approach as it seems the safest/least likely to break when other software changes. The SAS tech suggested something about editting my registry for&amp;nbsp;&lt;SPAN&gt;'typeguessrows', but I don't think I want to put time into that approach because it requires admin privliges on each users' machine, which I may not have.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this the best documentation for NOIPASSTHRU?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... I was hoping there was a list of DB-specific functions that were implicitely passed. Does such a list exist anywhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2016 16:54:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/character-length-in-proc-sql-versus-data-step/m-p/261127#M57585</guid>
      <dc:creator>mattmoehr</dc:creator>
      <dc:date>2016-04-04T16:54:24Z</dc:date>
    </item>
  </channel>
</rss>

