<?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: Picture Format - fractional seconds in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491033#M72146</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49550"&gt;@agoldma&lt;/a&gt;&amp;nbsp;for something like this you can either contact tech support or post on SASware Ballot section where it can be voted on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 23:37:15 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-08-29T23:37:15Z</dc:date>
    <item>
      <title>Picture Format - fractional seconds</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491015#M72143</link>
      <description>&lt;P&gt;The current documentation on the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.4&amp;amp;docsetId=proc&amp;amp;docsetTarget=p0n990vq8gxca6n1vnsracr6jp2c.htm&amp;amp;locale=en"&gt;picture format&lt;/A&gt; seems to imply that we should use both the %S and the %s directives in order to display the seconds and the fractional seconds. From what I see (in SAS version 9.04.01 M4) we should use only the %s directive by itself. It displays both the full and the fractional seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
   picture fm_db2_date_time  (default=26)
   other = '%Y-%0m-%0d %0H:%0M:%000000s'  (datatype=datetime)
   ;
run;
proc sql;
   select dhms('01may2012'd,13,5,2.876543)  format=datetime26.6           'built-in format'
         ,dhms('01may2012'd,13,5,2.876543)  format=fm_db2_date_time26.6   'picture format'
   from   sashelp.class(obs=1)
;quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;wanted to submit a request for a usage note, but I couldn't find how to do that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 22:08:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491015#M72143</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2018-08-29T22:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format - fractional seconds</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491023#M72144</link>
      <description>&lt;P&gt;Some of the behavior differences are more obvious when you do not provide the w.d at use.&lt;/P&gt;
&lt;P&gt;Such as:&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
   picture fm_db2_me  (default=26)
   other = '%Y-%0m-%0d %0H:%0M:%0S.%s'  (datatype=datetime)
   ;
   picture fm_db2_date_time  (default=26)
   other = '%Y-%0m-%0d %0H:%0M:%000000s'  (datatype=datetime)
   ;
run;

data _null_;
   x='01may2012:13:05:02.1234567'dt;
   put "datetime format " @25 x= datetime.    ;
   put "fm_db2_date_time format " @25 x= fm_db2_date_time. ;
   put "fm_db2_me format " @25 x=fm_db2_me.;
run;
&lt;/PRE&gt;
&lt;P&gt;where the format with %0S and %s shows a different number of displayed characters even though it has the same default length.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 22:52:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491023#M72144</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-29T22:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format - fractional seconds</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491029#M72145</link>
      <description>Thank you for showing a common difficulty -- forgetting to use w.d with decimals&lt;BR /&gt;That's exactly what I was doing wrong before I remembered to use the decimals&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Aug 2018 23:09:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491029#M72145</guid>
      <dc:creator>agoldma</dc:creator>
      <dc:date>2018-08-29T23:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: Picture Format - fractional seconds</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491033#M72146</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49550"&gt;@agoldma&lt;/a&gt;&amp;nbsp;for something like this you can either contact tech support or post on SASware Ballot section where it can be voted on.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas" target="_blank"&gt;https://communities.sas.com/t5/SASware-Ballot-Ideas/idb-p/sas_ideas&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 23:37:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Picture-Format-fractional-seconds/m-p/491033#M72146</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-29T23:37:15Z</dc:date>
    </item>
  </channel>
</rss>

