<?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 Remove encoding when using dictionary.columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Remove-encoding-when-using-dictionary-columns/m-p/724724#M225022</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm reading in many datasets and only extracting the vars I need using dictionary.colums.&amp;nbsp; However, these datasets have some encoding that I deed to remove as I'm getting some warnings in my log.&amp;nbsp; Here is my code:&amp;nbsp; Is there any place in my sql code I can pop in (encoding =ascii)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sql noprint; &lt;BR /&gt;select distinct memname&lt;BR /&gt;into :var1 - :var9999&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where upcase(libname) = "DB" &amp;amp; index(name, strip(memname)||"DAT")^=0 and index(memname,'CODE')=0 &amp;amp; index(name,"IG2")=0 &amp;amp; index(name,"PTT")=0 &amp;amp; index(name,"SV")=0 ;&lt;BR /&gt;%let sets = &amp;amp;sqlobs;&lt;BR /&gt;quit; &lt;BR /&gt;%put &amp;amp;sets.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting warnings like this in the log&lt;/P&gt;
&lt;P&gt;INFO: Data file DB.PFT.DATA is in a format that is native to another host, or the file encoding does not match the session&lt;BR /&gt;encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance.&lt;BR /&gt;INFO: Data file DB.PH.DATA is in a format that is native to another host, or the file encoding does not match the session encoding.&lt;BR /&gt;Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance.&lt;BR /&gt;INFO: Data file DB.PK.DATA is in a format that is native to another host, or the file encoding does not match the session encoding.&lt;BR /&gt;Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance.&lt;BR /&gt;INFO: Data file DB.PKR.DATA is in a format that is native to another host, or the file encoding does not match the session&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help is appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Mar 2021 00:43:59 GMT</pubDate>
    <dc:creator>jenim514</dc:creator>
    <dc:date>2021-03-09T00:43:59Z</dc:date>
    <item>
      <title>Remove encoding when using dictionary.columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-encoding-when-using-dictionary-columns/m-p/724724#M225022</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm reading in many datasets and only extracting the vars I need using dictionary.colums.&amp;nbsp; However, these datasets have some encoding that I deed to remove as I'm getting some warnings in my log.&amp;nbsp; Here is my code:&amp;nbsp; Is there any place in my sql code I can pop in (encoding =ascii)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;proc sql noprint; &lt;BR /&gt;select distinct memname&lt;BR /&gt;into :var1 - :var9999&lt;BR /&gt;from dictionary.columns&lt;BR /&gt;where upcase(libname) = "DB" &amp;amp; index(name, strip(memname)||"DAT")^=0 and index(memname,'CODE')=0 &amp;amp; index(name,"IG2")=0 &amp;amp; index(name,"PTT")=0 &amp;amp; index(name,"SV")=0 ;&lt;BR /&gt;%let sets = &amp;amp;sqlobs;&lt;BR /&gt;quit; &lt;BR /&gt;%put &amp;amp;sets.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Getting warnings like this in the log&lt;/P&gt;
&lt;P&gt;INFO: Data file DB.PFT.DATA is in a format that is native to another host, or the file encoding does not match the session&lt;BR /&gt;encoding. Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance.&lt;BR /&gt;INFO: Data file DB.PH.DATA is in a format that is native to another host, or the file encoding does not match the session encoding.&lt;BR /&gt;Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance.&lt;BR /&gt;INFO: Data file DB.PK.DATA is in a format that is native to another host, or the file encoding does not match the session encoding.&lt;BR /&gt;Cross Environment Data Access will be used, which might require additional CPU resources and might reduce performance.&lt;BR /&gt;INFO: Data file DB.PKR.DATA is in a format that is native to another host, or the file encoding does not match the session&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Help is appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 00:43:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-encoding-when-using-dictionary-columns/m-p/724724#M225022</guid>
      <dc:creator>jenim514</dc:creator>
      <dc:date>2021-03-09T00:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Remove encoding when using dictionary.columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Remove-encoding-when-using-dictionary-columns/m-p/724733#M225025</link>
      <description>&lt;P&gt;These are not warnings.&lt;/P&gt;
&lt;P&gt;When the dictionary accesses the tables to extract metadata, it encounters data sets that contain data encoded differently than your current session, or maybe these tables where created on a different host (such as UNIX or Linux).&lt;/P&gt;
&lt;P&gt;As long as these tables are kept as is, the note will be displayed. nothing to worry about.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You'd have to re-create them to get rid of that note. Be careful not to lose data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Mar 2021 01:24:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Remove-encoding-when-using-dictionary-columns/m-p/724733#M225025</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-03-09T01:24:51Z</dc:date>
    </item>
  </channel>
</rss>

