<?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 SAS Date format with out slashes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565650#M158838</link>
    <description>&lt;P&gt;I am looking to remove the slashes from a date field.&amp;nbsp; The following format with the "n" returns an error. Any ideas appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original data is a date field called month in this format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;20161201&lt;BR /&gt;20160801&lt;BR /&gt;20161201&lt;BR /&gt;20161201&lt;BR /&gt;20161001&lt;BR /&gt;20161101&lt;BR /&gt;20161101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data fix_date;&lt;BR /&gt;set work.query_for_objectives_for_reports;&lt;BR /&gt;month = intnx('month',month1,0,"BEGINNING");&lt;BR /&gt;format month mmddyyn10.;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET _CLIENTPROJECTPATHHOST='';&lt;BR /&gt;7 %LET _CLIENTPROJECTNAME='';&lt;BR /&gt;8 %LET _SASPROGRAMFILE='';&lt;BR /&gt;9 %LET _SASPROGRAMFILEHOST='';&lt;BR /&gt;10&lt;BR /&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=PNG;&lt;BR /&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;14&lt;BR /&gt;15 GOPTIONS ACCESSIBLE;&lt;BR /&gt;16 data fix_date;&lt;BR /&gt;17 set work.query_for_objectives_for_reports;&lt;BR /&gt;18 month = intnx('month',month1,0,"BEGINNING");&lt;BR /&gt;19 format month mmddyyn10.;&lt;BR /&gt;__________&lt;BR /&gt;29&lt;BR /&gt;ERROR 29-185: Width specified for format MMDDYYN is invalid.&lt;/P&gt;&lt;P&gt;20&lt;BR /&gt;21 run;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jun 2019 19:43:53 GMT</pubDate>
    <dc:creator>cbrotz</dc:creator>
    <dc:date>2019-06-12T19:43:53Z</dc:date>
    <item>
      <title>SAS Date format with out slashes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565650#M158838</link>
      <description>&lt;P&gt;I am looking to remove the slashes from a date field.&amp;nbsp; The following format with the "n" returns an error. Any ideas appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Original data is a date field called month in this format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;20161201&lt;BR /&gt;20160801&lt;BR /&gt;20161201&lt;BR /&gt;20161201&lt;BR /&gt;20161001&lt;BR /&gt;20161101&lt;BR /&gt;20161101&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data fix_date;&lt;BR /&gt;set work.query_for_objectives_for_reports;&lt;BR /&gt;month = intnx('month',month1,0,"BEGINNING");&lt;BR /&gt;format month mmddyyn10.;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%LET _CLIENTPROJECTPATHHOST='';&lt;BR /&gt;7 %LET _CLIENTPROJECTNAME='';&lt;BR /&gt;8 %LET _SASPROGRAMFILE='';&lt;BR /&gt;9 %LET _SASPROGRAMFILEHOST='';&lt;BR /&gt;10&lt;BR /&gt;11 ODS _ALL_ CLOSE;&lt;BR /&gt;12 OPTIONS DEV=PNG;&lt;BR /&gt;13 GOPTIONS XPIXELS=0 YPIXELS=0;&lt;BR /&gt;14&lt;BR /&gt;15 GOPTIONS ACCESSIBLE;&lt;BR /&gt;16 data fix_date;&lt;BR /&gt;17 set work.query_for_objectives_for_reports;&lt;BR /&gt;18 month = intnx('month',month1,0,"BEGINNING");&lt;BR /&gt;19 format month mmddyyn10.;&lt;BR /&gt;__________&lt;BR /&gt;29&lt;BR /&gt;ERROR 29-185: Width specified for format MMDDYYN is invalid.&lt;/P&gt;&lt;P&gt;20&lt;BR /&gt;21 run;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:43:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565650#M158838</guid>
      <dc:creator>cbrotz</dc:creator>
      <dc:date>2019-06-12T19:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date format with out slashes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565655#M158840</link>
      <description>&lt;P&gt;What error? Show us the SAS log, not just the ERROR message, but the entire DATA step with subsequent ERROR message and notes. Please paste the log into the window that appears when you click on the {i} icon.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:41:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565655#M158840</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-06-12T19:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date format with out slashes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565657#M158842</link>
      <description>use width 8.  mmddyyn8,;</description>
      <pubDate>Wed, 12 Jun 2019 19:43:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565657#M158842</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-06-12T19:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date format with out slashes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565658#M158843</link>
      <description>&lt;P&gt;Added log....&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565658#M158843</guid>
      <dc:creator>cbrotz</dc:creator>
      <dc:date>2019-06-12T19:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date format with out slashes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565660#M158844</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jun 2019 19:47:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565660#M158844</guid>
      <dc:creator>cbrotz</dc:creator>
      <dc:date>2019-06-12T19:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date format with out slashes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565685#M158856</link>
      <description>&lt;P&gt;From the documentation of the mmddyxw. format:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;TABLE class="xis-summary"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryInteraction" rowspan="2"&gt;Interactions&lt;/TD&gt;
&lt;TD class="xis-summaryText"&gt;When &lt;SPAN class="xis-userSuppliedValue"&gt;w&lt;/SPAN&gt; has a value of from 2 to 5, the date appears with as much of the month and the day as possible. When &lt;SPAN class="xis-userSuppliedValue"&gt;w&lt;/SPAN&gt; is 7, the date appears as a two-digit year without separators.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD class="xis-summaryText"&gt;When &lt;SPAN class="xis-userSuppliedValue"&gt;x&lt;/SPAN&gt; has a value of N, the &lt;STRONG&gt;width range changes to 2–8.&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 12 Jun 2019 20:43:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Date-format-with-out-slashes/m-p/565685#M158856</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-06-12T20:43:39Z</dc:date>
    </item>
  </channel>
</rss>

