<?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: how to show seconds format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486144#M126428</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
picture fmt
 low-high='%0s' (datatype=time);
run;



data want ;
time='12:12:34't ;
format time time8. ;
run;
proc print data=want ;
format time fmt. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 12 Aug 2018 10:59:26 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2018-08-12T10:59:26Z</dc:date>
    <item>
      <title>how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486121#M126408</link>
      <description>&lt;P&gt;data want ;&lt;/P&gt;&lt;P&gt;time='12:12:34't ;&lt;/P&gt;&lt;P&gt;format time time8. ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=want ;&lt;/P&gt;&lt;P&gt;format time second. ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i run above program it doesn't show the value so what will we do?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 06:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486121#M126408</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-12T06:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486122#M126409</link>
      <description>&lt;P&gt;Maxim 1 &amp;amp; Maxim 2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From where do you get the notion that a "second" format exists?&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 07:12:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486122#M126409</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-12T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486123#M126410</link>
      <description>&lt;P&gt;What is a SAS time value?&lt;/P&gt;
&lt;P&gt;See here:&amp;nbsp;&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/65287/HTML/default/viewer.htm#p1wj0wt2ebe2a0n1lv4lem9hdc0v.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This will give you a clue.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 07:16:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486123#M126410</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-12T07:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486126#M126412</link>
      <description>&lt;P&gt;i want to show only seconds on output by using proc pirnt&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 07:52:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486126#M126412</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-12T07:52:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486128#M126414</link>
      <description>&lt;P&gt;we could show the seconds in a new variable using the second function, not sure if we have a format for seconds only&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please try the below code which will create a new variable with seconds.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want ;
time='12:12:34't ;
second=second(time);
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Aug 2018 08:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486128#M126414</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-08-12T08:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486129#M126415</link>
      <description>i asked&lt;BR /&gt;is there any format for second</description>
      <pubDate>Sun, 12 Aug 2018 08:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486129#M126415</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2018-08-12T08:10:22Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486130#M126416</link>
      <description>not, as of I remember &lt;BR /&gt;but definitely may be if others can help you.</description>
      <pubDate>Sun, 12 Aug 2018 08:13:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486130#M126416</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-08-12T08:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486137#M126422</link>
      <description>&lt;P&gt;Do you need the seconds-part from the time-value or the time-value in seconds?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you need the later: Have you read the documents linked by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 10:01:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486137#M126422</guid>
      <dc:creator>error_prone</dc:creator>
      <dc:date>2018-08-12T10:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486138#M126423</link>
      <description>&lt;P&gt;Once again: read the documentation. Time values ARE seconds, so no special format is needed. If you need to extract the seconds within a minute, use the second() function, or mod(time,60).&lt;/P&gt;</description>
      <pubDate>Sun, 12 Aug 2018 10:23:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486138#M126423</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-12T10:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486144#M126428</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
picture fmt
 low-high='%0s' (datatype=time);
run;



data want ;
time='12:12:34't ;
format time time8. ;
run;
proc print data=want ;
format time fmt. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Aug 2018 10:59:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486144#M126428</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-08-12T10:59:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486145#M126429</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
picture fmt
 low-high='%0s' (datatype=time);
run;



data want ;
time='12:12:34't ;
format time time8. ;
run;
proc print data=want ;
format time fmt. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Aug 2018 11:02:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486145#M126429</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-08-12T11:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to show seconds format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486204#M126463</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;i asked&lt;BR /&gt;is there any format for second&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Time values are stored as seconds, so not having any format will display it in seconds.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any other format applies a style to it. Similarly, dates as stored as days.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
    time='12:12:34't;
    seconds = 34 + 12*60 + 12*60*60; *to check;
    format time time8.;
run;

title 'With time8 format';

proc print data=want;
    format time time8.;
run;

title 'With no format';

proc print data=want;
    format time;
    ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Aug 2018 23:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-show-seconds-format/m-p/486204#M126463</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-12T23:35:42Z</dc:date>
    </item>
  </channel>
</rss>

