<?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: Format datetimevalue in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Format-datetimevalue/m-p/558864#M10188</link>
    <description>&lt;P&gt;Expand your format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture mdyhms
  . = "."
  other = '%0d/%0m/%Y %0H:%0M:%0S' (datatype=datetime)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And do not use a put statement like that for all your observations, as that will explode the log and is most probably the cause for your server process crashing.&lt;/P&gt;</description>
    <pubDate>Wed, 15 May 2019 11:11:30 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-05-15T11:11:30Z</dc:date>
    <item>
      <title>Format datetimevalue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Format-datetimevalue/m-p/558858#M10186</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;i am have a SAS dataset with several variables having the following format: ddMMMyyyyHH:MM:SS an example&amp;nbsp;02NOV2018:09:51:58.&lt;BR /&gt;I would like to change the format in dd/mm/yyyyhh:mm:ss so it would be 02/11/2018 09:51:58 .&lt;BR /&gt;Unfortunately some of the values are missing (.), thus when try the below code (found here) I am running in lots of fields ERROR, in addition if i try to enlarge the database SAS faile saying "An error occured executing the workspace XXX The server is disconnected":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please help me?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;picture mdyhms&lt;BR /&gt;other = '%0d/%0m/%Y %0H:%0M:%0S' (datatype=datetime);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data try_format_mdyhms;&lt;BR /&gt;set mydata;&lt;BR /&gt;format date1 mdyhms.;&lt;/P&gt;&lt;P&gt;put date1:mdyhms.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 10:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Format-datetimevalue/m-p/558858#M10186</guid>
      <dc:creator>lucazanotti</dc:creator>
      <dc:date>2019-05-15T10:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Format datetimevalue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Format-datetimevalue/m-p/558864#M10188</link>
      <description>&lt;P&gt;Expand your format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture mdyhms
  . = "."
  other = '%0d/%0m/%Y %0H:%0M:%0S' (datatype=datetime)
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And do not use a put statement like that for all your observations, as that will explode the log and is most probably the cause for your server process crashing.&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 11:11:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Format-datetimevalue/m-p/558864#M10188</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-15T11:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Format datetimevalue</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Format-datetimevalue/m-p/558899#M10200</link>
      <description>&lt;P&gt;Hi Kurt,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;that's right thanks a lot for the swift answer. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Luca&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2019 13:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Format-datetimevalue/m-p/558899#M10200</guid>
      <dc:creator>lucazanotti</dc:creator>
      <dc:date>2019-05-15T13:07:04Z</dc:date>
    </item>
  </channel>
</rss>

