<?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: Setting correct format when metadata updates using sas access to MS Server in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850868#M25679</link>
    <description>&lt;P&gt;Depending on how you are updating the database the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1dqaq7ub1cm1pn1ow3x9qkmkxe8.htm" target="_blank" rel="noopener"&gt;DBTYPE&lt;/A&gt; option might be useful in overriding the default database column lengths although obviously that will only work for new tables.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Dec 2022 22:32:51 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-12-22T22:32:51Z</dc:date>
    <item>
      <title>Setting correct format when metadata updates using sas access to MS Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850644#M25674</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello everyone! &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We have a table in the database with Cyrillic characters. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To work correctly, the format of this field must be 2 times longer than the length of the field in the database. When we use SAS Access to oracle, sas sets the correct format 2-4 times larger. But when we use SAS Access to ms server, the format is equal to the length of the field. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;How can I fix this so that when updating metadata, the format of the field becomes 2-4 times the length of the field in the database?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 16:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850644#M25674</guid>
      <dc:creator>John_Wick</dc:creator>
      <dc:date>2022-12-21T16:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Setting correct format when metadata updates using sas access to MS Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850692#M25675</link>
      <description>&lt;P&gt;Please post the current code you are using to update both Oracle and SQL server. Also please provide details of the column definitions in the databases. Is it varchar by any chance? Also can you check your SAS encoding setting by running this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=encoding;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2022 23:30:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850692#M25675</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-21T23:30:08Z</dc:date>
    </item>
    <item>
      <title>Re: Setting correct format when metadata updates using sas access to MS Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850761#M25677</link>
      <description>Metadata is updated via the SAS Management Console.&lt;BR /&gt;The type of field in databases is varchar.&lt;BR /&gt;Tiers:&lt;BR /&gt;1) Oracle encoding is utf8, SAS session is cp1251.&lt;BR /&gt;2) MS Server encoding is utf-8, SAS session is utf-8.</description>
      <pubDate>Thu, 22 Dec 2022 11:06:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850761#M25677</guid>
      <dc:creator>John_Wick</dc:creator>
      <dc:date>2022-12-22T11:06:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting correct format when metadata updates using sas access to MS Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850766#M25678</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/431849"&gt;@John_Wick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Metadata is updated via the SAS Management Console.&lt;BR /&gt;The type of field in databases is varchar.&lt;BR /&gt;Tiers:&lt;BR /&gt;1) Oracle encoding is utf8, SAS session is cp1251.&lt;BR /&gt;2) MS Server encoding is utf-8, SAS session is utf-8.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;As I understand it, cp1251 is a single byte character set. and UTF-8 is multi-byte. &amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.2/nlsref/n0ck4l40qlw2pmn1lbuj2zo1izxi.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.2/nlsref/n0ck4l40qlw2pmn1lbuj2zo1izxi.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the difference in SAS session encodings is probably causing the difference. &amp;nbsp;In your cp1251 SAS session that talks to Oracle, SAS knows it is going from a single byte character set to multi-byte, so it expands the lengths and formats of variables. &amp;nbsp;In your utf-8 SAS session that talks to MS SQL Server, since both sessions are UTF-8 SAS doesn't need to modify the lengths of variables. &amp;nbsp;You could try testing this by using SAS Access to SQL Server from the SAS session with cp1251 encoding, and see if it then does the variable length expansion you are expecting.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 12:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850766#M25678</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2022-12-22T12:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting correct format when metadata updates using sas access to MS Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850868#M25679</link>
      <description>&lt;P&gt;Depending on how you are updating the database the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/acreldb/p1dqaq7ub1cm1pn1ow3x9qkmkxe8.htm" target="_blank" rel="noopener"&gt;DBTYPE&lt;/A&gt; option might be useful in overriding the default database column lengths although obviously that will only work for new tables.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 22:32:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Setting-correct-format-when-metadata-updates-using-sas-access-to/m-p/850868#M25679</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-12-22T22:32:51Z</dc:date>
    </item>
  </channel>
</rss>

