<?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: Combining mm,yy,dd,cc into 1 variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501721#M133814</link>
    <description>&lt;P&gt;Thankyou Guys for replay and great help...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the code like below and it worked.&amp;nbsp; THANKS AGAIN!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ELIG_CERT_EFF_DATE =mdy(mm,dd,100*cc+yy);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format ELIG_CERT_EFF_DATE mmddyyn8.;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 02:07:57 GMT</pubDate>
    <dc:creator>sgarg</dc:creator>
    <dc:date>2018-10-05T02:07:57Z</dc:date>
    <item>
      <title>Combining mm,yy,dd,cc into 1 variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501707#M133808</link>
      <description>&lt;P&gt;I need to combine cc , yy, mm, dd&amp;nbsp; numeric variable into 1 variable.&amp;nbsp;&amp;nbsp; mm can be input as 3 so i need to make it 03 first and then merge into one variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to do this with all variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Not sure how to do any help please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 23:49:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501707#M133808</guid>
      <dc:creator>sgarg</dc:creator>
      <dc:date>2018-10-04T23:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Combining mm,yy,dd,cc into 1 variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501711#M133810</link>
      <description>&lt;P&gt;Since they are numeric, not character, variables, it doesn't matter that some mm, some dd, or some yy are single digits (I presume cc is 19 or 20).&amp;nbsp; You'll use numeric operations and numeric function on them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; my_date=mdy(mm,dd,100*cc+yy);&lt;/P&gt;
&lt;P&gt;&amp;nbsp; format my_date date9.;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 23:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501711#M133810</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2018-10-04T23:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Combining mm,yy,dd,cc into 1 variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501715#M133811</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/26987"&gt;@sgarg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I need to combine cc , yy, mm, dd&amp;nbsp; numeric variable into 1 variable.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;OK. What do you want as the output in that variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/26987"&gt;@sgarg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;mm can be input as 3 so i need to make it 03 first and then merge into one variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Show what you have and what you need as output, explicitly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/26987"&gt;@sgarg&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to do this with all variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You've indicated three variables, how many variables do you have? What have you tried so far?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you instead mean you need to do this for all rows/records or for multiple different day/month/year variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 01:48:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501715#M133811</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-05T01:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Combining mm,yy,dd,cc into 1 variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501721#M133814</link>
      <description>&lt;P&gt;Thankyou Guys for replay and great help...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the code like below and it worked.&amp;nbsp; THANKS AGAIN!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ELIG_CERT_EFF_DATE =mdy(mm,dd,100*cc+yy);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; format ELIG_CERT_EFF_DATE mmddyyn8.;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 02:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501721#M133814</guid>
      <dc:creator>sgarg</dc:creator>
      <dc:date>2018-10-05T02:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Combining mm,yy,dd,cc into 1 variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501727#M133817</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/26987"&gt;@sgarg&lt;/a&gt;&amp;nbsp;please mark&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31461"&gt;@mkeintz&lt;/a&gt;&amp;nbsp;answer as correct, because he posted the correct solution.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 02:33:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Combining-mm-yy-dd-cc-into-1-variable/m-p/501727#M133817</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-05T02:33:59Z</dc:date>
    </item>
  </channel>
</rss>

