<?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 convert the format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/convert-the-format/m-p/754481#M237934</link>
    <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I have a variable "rdq" which originally is 4 digits, I use the following code to add two zeros in front to make it become 6 digits,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data Rdq_1;&lt;BR /&gt;set Rdq;&lt;BR /&gt;format GVKEY z6.;&lt;BR /&gt;drop CIK;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now I want to convert the 6 digits "rdq" from numeric to character, how can I do it?&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jul 2021 02:23:08 GMT</pubDate>
    <dc:creator>Xinhui</dc:creator>
    <dc:date>2021-07-16T02:23:08Z</dc:date>
    <item>
      <title>convert the format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-format/m-p/754481#M237934</link>
      <description>&lt;P&gt;Hello there,&lt;/P&gt;&lt;P&gt;I have a variable "rdq" which originally is 4 digits, I use the following code to add two zeros in front to make it become 6 digits,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data Rdq_1;&lt;BR /&gt;set Rdq;&lt;BR /&gt;format GVKEY z6.;&lt;BR /&gt;drop CIK;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;now I want to convert the 6 digits "rdq" from numeric to character, how can I do it?&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 02:23:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-format/m-p/754481#M237934</guid>
      <dc:creator>Xinhui</dc:creator>
      <dc:date>2021-07-16T02:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: convert the format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-format/m-p/754498#M237941</link>
      <description>&lt;P&gt;Numeric to character is create a new variable using Put function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data Rdq_1;
   set Rdq;
   format GVKEY z6.;
   GVKEY_char = put(gvkey, z6.);
   drop CIK;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 05:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-format/m-p/754498#M237941</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-07-16T05:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: convert the format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/convert-the-format/m-p/754594#M237994</link>
      <description>Thank you so much.</description>
      <pubDate>Fri, 16 Jul 2021 14:26:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/convert-the-format/m-p/754594#M237994</guid>
      <dc:creator>Xinhui</dc:creator>
      <dc:date>2021-07-16T14:26:00Z</dc:date>
    </item>
  </channel>
</rss>

