<?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 Input function with hhmmss6. informat is behaving differently in SAS 9.2 and 9.3 when there are leading zeroes in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Input-function-with-hhmmss6-informat-is-behaving-differently-in/m-p/168500#M32356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing the below code in both SAS 9.2 and 9.3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data kk;&lt;/P&gt;&lt;P&gt;var='000042';&lt;/P&gt;&lt;P&gt;var2=input(var,hhmmss6.);&lt;/P&gt;&lt;P&gt;format var2 time8.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS 9.2 (as well as in 9.1.3) the value of var2 is coming up as 0:00:42 (best12. value is 42), which is correct. But in 9.3 it is appearing as 42:00:00 (best12. value 151200). It seems SAS is just disregarding leading zeroes from the text field in 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any change regarding this in SAS 9.3 for Input function (or informats).? I am really puzzled at why this correct thing be changed during upgrade, or is it a bug that crept in while moving on to 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appreciate any insight on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Saugata Mukherjee.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jul 2014 11:24:00 GMT</pubDate>
    <dc:creator>Saugata</dc:creator>
    <dc:date>2014-07-07T11:24:00Z</dc:date>
    <item>
      <title>Input function with hhmmss6. informat is behaving differently in SAS 9.2 and 9.3 when there are leading zeroes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-function-with-hhmmss6-informat-is-behaving-differently-in/m-p/168500#M32356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am executing the below code in both SAS 9.2 and 9.3:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data kk;&lt;/P&gt;&lt;P&gt;var='000042';&lt;/P&gt;&lt;P&gt;var2=input(var,hhmmss6.);&lt;/P&gt;&lt;P&gt;format var2 time8.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS 9.2 (as well as in 9.1.3) the value of var2 is coming up as 0:00:42 (best12. value is 42), which is correct. But in 9.3 it is appearing as 42:00:00 (best12. value 151200). It seems SAS is just disregarding leading zeroes from the text field in 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any change regarding this in SAS 9.3 for Input function (or informats).? I am really puzzled at why this correct thing be changed during upgrade, or is it a bug that crept in while moving on to 9.3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would really appreciate any insight on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Thanks &amp;amp; Regards,&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Saugata Mukherjee.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 11:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-function-with-hhmmss6-informat-is-behaving-differently-in/m-p/168500#M32356</guid>
      <dc:creator>Saugata</dc:creator>
      <dc:date>2014-07-07T11:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Input function with hhmmss6. informat is behaving differently in SAS 9.2 and 9.3 when there are leading zeroes</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-function-with-hhmmss6-informat-is-behaving-differently-in/m-p/168501#M32357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When the same code produces different results between SAS versions, and said difference is not noted somewhere in the documentation, it is clearly a matter for SAS tech support. Open a track there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had a similar problem in the behaviour of the $ebcdic format between 6.12/8.2 that lead to a fix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2014 12:02:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-function-with-hhmmss6-informat-is-behaving-differently-in/m-p/168501#M32357</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-07-07T12:02:52Z</dc:date>
    </item>
  </channel>
</rss>

