<?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: Change date/time DD/MM/YY to date MMYY SAS EG 4.2 in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164740#M12696</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;if you want to change the a date/time variable that you want in a mmyyyy format you must extract the date out of the variable first.&lt;/P&gt;&lt;P&gt;use create a new variable and edit&lt;/P&gt;&lt;P&gt;datepart(variable name)&lt;BR /&gt;and then pick the right format , i personally use mmyys7.&lt;/P&gt;&lt;P&gt;which give you the month and year with a slash between them&lt;/P&gt;&lt;P&gt;good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 08:01:25 GMT</pubDate>
    <dc:creator>anonymous_user</dc:creator>
    <dc:date>2014-02-06T08:01:25Z</dc:date>
    <item>
      <title>Change date/time DD/MM/YY to date MMYY SAS EG 4.2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164737#M12693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to change the format of a date/time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going into the table, double clicking on a Cell which prompts me to accept editing access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I then right click &amp;amp; go to Properties to change the Format of the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw a tutorial to do this to change a Char field to a Number but can't get this to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The options given are Informat which I chnage to 'MONYY' &amp;amp; I do the same to the Format option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields turn into this '******' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone advise what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 00:17:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164737#M12693</guid>
      <dc:creator>pcfriendly</dc:creator>
      <dc:date>2014-02-06T00:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change date/time DD/MM/YY to date MMYY SAS EG 4.2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164738#M12694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the field a datetime value? Or simply a date value?&amp;nbsp; The underlying raw value for a datetime value is a &lt;STRONG&gt;number of seconds&lt;/STRONG&gt; since midnight on Jan 1, 1960.&amp;nbsp; For a date value, it's a &lt;STRONG&gt;number of days&lt;/STRONG&gt; since Jan 1, 1960.&amp;nbsp; A datetime value might not be displayable (and certainly would be incorrect) in the MMYY format.&amp;nbsp; Instead, you probably want the DTMONYY5. format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See:&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2011/11/15/do-you-mind-if-we-dance-with-your-dates/" title="http://blogs.sas.com/content/sasdummy/2011/11/15/do-you-mind-if-we-dance-with-your-dates/"&gt;Do you mind if we dance with your DATEs (or DATETIMEs)? - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or perhaps you really do have a date value, and you haven't specified a large enough width specifier for the MMYY format.&amp;nbsp; More on formats and lengths:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2007/11/20/lengths-and-formats-the-long-and-short-of-it/" title="http://blogs.sas.com/content/sasdummy/2007/11/20/lengths-and-formats-the-long-and-short-of-it/"&gt; Lengths and formats: the long and short of it - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 02:00:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164738#M12694</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2014-02-06T02:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: Change date/time DD/MM/YY to date MMYY SAS EG 4.2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164739#M12695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My mistake, the field to be changed is a Date/Time field &amp;amp; I want to use the feature I described above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm making a mistake in the steps somewhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some instructions I was using &amp;amp; adapting to a Date/ Time situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From this page; &lt;A href="http://support.sas.com/kb/26/012.html"&gt;http://support.sas.com/kb/26/012.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Right-click on the column to be converted and select &lt;STRONG&gt;Properties&lt;/STRONG&gt;.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Change the type to Numeric and click &lt;STRONG&gt;Yes&lt;/STRONG&gt; in the warning prompt regarding precision.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Change the Group to Date.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;Informats&lt;/STRONG&gt;; the selected value under Categories should be Date. Change the informat to ANYDTDTEw.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Under Attributes, assign an overall width of 10.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;Formats&lt;/STRONG&gt;; the selected value under Categories should be Date. Change the format to MMDDYYw.d.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Under Attributes, assign an overall width of 10.&amp;nbsp; &lt;/LI&gt;&lt;LI&gt;Click &lt;STRONG&gt;OK&lt;/STRONG&gt;. If the conversion results are correct in the Preview Results window, click &lt;STRONG&gt;Commit changes&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;I used the ANYDTTME format for the Informat but it still won't work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggests?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 03:04:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164739#M12695</guid>
      <dc:creator>pcfriendly</dc:creator>
      <dc:date>2014-02-06T03:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Change date/time DD/MM/YY to date MMYY SAS EG 4.2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164740#M12696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;if you want to change the a date/time variable that you want in a mmyyyy format you must extract the date out of the variable first.&lt;/P&gt;&lt;P&gt;use create a new variable and edit&lt;/P&gt;&lt;P&gt;datepart(variable name)&lt;BR /&gt;and then pick the right format , i personally use mmyys7.&lt;/P&gt;&lt;P&gt;which give you the month and year with a slash between them&lt;/P&gt;&lt;P&gt;good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 08:01:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164740#M12696</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2014-02-06T08:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Change date/time DD/MM/YY to date MMYY SAS EG 4.2</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164741#M12697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks S.boeko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's got it !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:19:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Change-date-time-DD-MM-YY-to-date-MMYY-SAS-EG-4-2/m-p/164741#M12697</guid>
      <dc:creator>pcfriendly</dc:creator>
      <dc:date>2014-02-06T20:19:50Z</dc:date>
    </item>
  </channel>
</rss>

