<?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: Informat to read the SAS time for input value 21:43 in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Informat-to-read-the-SAS-time-for-input-value-21-43/m-p/663782#M22807</link>
    <description>&lt;P&gt;Why are you reading 11 character for the date value when it only has 9?&lt;/P&gt;
&lt;P&gt;Try using LIST mode input instead of FORMATTED mode.&amp;nbsp; Also make sure you include at least one line of data.&amp;nbsp; The datalines stop on the last line BEFORE the semi-colon.&amp;nbsp; Also no need to include an extra RUN statement after the end of your data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sasprg.data1;
  infile datalines ;
  input Bday :$9. Date :date. Timer :stimer. Country :$30. Gender :$7.;
  format Date date11. Timer time5.;
datalines;
29SEP2018 29-Aug-19 10:36 ARGENTINA Male
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sun, 21 Jun 2020 01:46:30 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-06-21T01:46:30Z</dc:date>
    <item>
      <title>Informat to read the SAS time for input value 21:43</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Informat-to-read-the-SAS-time-for-input-value-21-43/m-p/663779#M22806</link>
      <description>&lt;P&gt;data sasprg.data1;&lt;BR /&gt;infile datalines delimiter=" ";&lt;BR /&gt;input Bday $ Date date11. Timer stimer5. Country $ Gender $;&lt;BR /&gt;format Date date11. Timer time5.;&lt;BR /&gt;datalines;&lt;BR /&gt;29SEP2018 29-Aug-19 10:36 ARGENTINA Male;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;Output:&lt;/P&gt;&lt;P&gt;Obs Bday Date Timer Country Gender1&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;29SEP201&lt;/TD&gt;&lt;TD&gt;29-AUG-2019&lt;/TD&gt;&lt;TD&gt;0:00&lt;/TD&gt;&lt;TD&gt;ARGENTIN&lt;/TD&gt;&lt;TD&gt;Male&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise to get an value of timer variable in output table as 10:36&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jun 2020 01:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Informat-to-read-the-SAS-time-for-input-value-21-43/m-p/663779#M22806</guid>
      <dc:creator>Nikhilvg</dc:creator>
      <dc:date>2020-06-21T01:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Informat to read the SAS time for input value 21:43</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Informat-to-read-the-SAS-time-for-input-value-21-43/m-p/663782#M22807</link>
      <description>&lt;P&gt;Why are you reading 11 character for the date value when it only has 9?&lt;/P&gt;
&lt;P&gt;Try using LIST mode input instead of FORMATTED mode.&amp;nbsp; Also make sure you include at least one line of data.&amp;nbsp; The datalines stop on the last line BEFORE the semi-colon.&amp;nbsp; Also no need to include an extra RUN statement after the end of your data step.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data sasprg.data1;
  infile datalines ;
  input Bday :$9. Date :date. Timer :stimer. Country :$30. Gender :$7.;
  format Date date11. Timer time5.;
datalines;
29SEP2018 29-Aug-19 10:36 ARGENTINA Male
;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jun 2020 01:46:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Informat-to-read-the-SAS-time-for-input-value-21-43/m-p/663782#M22807</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-06-21T01:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Informat to read the SAS time for input value 21:43</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Informat-to-read-the-SAS-time-for-input-value-21-43/m-p/663829#M22811</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data data1;
infile datalines delimiter=" ";
input Bday : $20. Date : date11. Timer : time. Country $ Gender $;
format Date date9. Timer time5.;
datalines;
29SEP2018 29-Aug-19 10:36 ARGENTINA Male
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 21 Jun 2020 11:09:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Informat-to-read-the-SAS-time-for-input-value-21-43/m-p/663829#M22811</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-06-21T11:09:01Z</dc:date>
    </item>
  </channel>
</rss>

