<?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: Convert CNPJ 14 for 8 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Convert-CNPJ-14-for-8/m-p/766989#M243089</link>
    <description>&lt;P&gt;Hi Rita,&lt;/P&gt;
&lt;P&gt;You need is unclear, you might want to explain more. What's wrong with your code?&lt;/P&gt;
&lt;P&gt;Also, please start a new thread for the second question (which is also unclear)&lt;/P&gt;
&lt;P&gt;Also please use the appropriate icon when posting code to make it more legible.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Sep 2021 00:35:05 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-09-10T00:35:05Z</dc:date>
    <item>
      <title>Convert CNPJ 14 for 8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CNPJ-14-for-8/m-p/766961#M243082</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a base that has cnpj and I want to take the cnpj14 field which is in number and transform it to 8&lt;/P&gt;&lt;P&gt;I have for example string below:&lt;/P&gt;&lt;P&gt;Remember that there may be a leading zero and it is not for counting&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;data one;&lt;/DIV&gt;&lt;DIV&gt;val=1234567;&lt;/DIV&gt;&lt;DIV&gt;val1=substr(left(val),1,4); run;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;How can i proceed?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;And another subject how can I convert where filter to text in sql server via sas??&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Rita&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 09 Sep 2021 19:28:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CNPJ-14-for-8/m-p/766961#M243082</guid>
      <dc:creator>Rita2021</dc:creator>
      <dc:date>2021-09-09T19:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert CNPJ 14 for 8</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Convert-CNPJ-14-for-8/m-p/766989#M243089</link>
      <description>&lt;P&gt;Hi Rita,&lt;/P&gt;
&lt;P&gt;You need is unclear, you might want to explain more. What's wrong with your code?&lt;/P&gt;
&lt;P&gt;Also, please start a new thread for the second question (which is also unclear)&lt;/P&gt;
&lt;P&gt;Also please use the appropriate icon when posting code to make it more legible.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Sep 2021 00:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Convert-CNPJ-14-for-8/m-p/766989#M243089</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-09-10T00:35:05Z</dc:date>
    </item>
  </channel>
</rss>

