<?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 Reading variables from file .txt in tim5. (hh:mm) format (using infile procedure) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Reading-variables-from-file-txt-in-tim5-hh-mm-format-using/m-p/237562#M55367</link>
    <description>&lt;P&gt;Dear experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to read from a txt file a variable written in this way: hh:mm&lt;/P&gt;
&lt;P&gt;using infile procedure. Below I exemplify what I'm doing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename READ "C:\READ.txt";&lt;BR /&gt;filename FILE_A "C:\FILE_A.txt";&lt;BR /&gt;data FILE_A (compress=yes );&lt;BR /&gt;infile FILE_A lrecl=24&amp;nbsp; missover;&lt;BR /&gt;INPUT %include READ;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where file NEW is this:&lt;/P&gt;
&lt;P&gt;1IST2006611:24&lt;BR /&gt;1IST2006610:31&lt;BR /&gt;1IST20066 9:15&lt;BR /&gt;1IST2006618:22&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and READ is this:&lt;/P&gt;
&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1-1&lt;BR /&gt;B&amp;nbsp; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 2-9&lt;BR /&gt;TIMEVAR $ 10-14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the imported FILE_A the variable TIMEVAR is as aspected, in char format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I use the same procedure specifying that TIMEVAR has to be read in time5. format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to all in advance,&lt;/P&gt;
&lt;P&gt;Daniela&lt;/P&gt;</description>
    <pubDate>Thu, 03 Dec 2015 11:04:17 GMT</pubDate>
    <dc:creator>Daniela_P</dc:creator>
    <dc:date>2015-12-03T11:04:17Z</dc:date>
    <item>
      <title>Reading variables from file .txt in tim5. (hh:mm) format (using infile procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-variables-from-file-txt-in-tim5-hh-mm-format-using/m-p/237562#M55367</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to read from a txt file a variable written in this way: hh:mm&lt;/P&gt;
&lt;P&gt;using infile procedure. Below I exemplify what I'm doing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;filename READ "C:\READ.txt";&lt;BR /&gt;filename FILE_A "C:\FILE_A.txt";&lt;BR /&gt;data FILE_A (compress=yes );&lt;BR /&gt;infile FILE_A lrecl=24&amp;nbsp; missover;&lt;BR /&gt;INPUT %include READ;;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where file NEW is this:&lt;/P&gt;
&lt;P&gt;1IST2006611:24&lt;BR /&gt;1IST2006610:31&lt;BR /&gt;1IST20066 9:15&lt;BR /&gt;1IST2006618:22&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and READ is this:&lt;/P&gt;
&lt;P&gt;A&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1-1&lt;BR /&gt;B&amp;nbsp; $&amp;nbsp;&amp;nbsp;&amp;nbsp; 2-9&lt;BR /&gt;TIMEVAR $ 10-14&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the imported FILE_A the variable TIMEVAR is as aspected, in char format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I use the same procedure specifying that TIMEVAR has to be read in time5. format?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks to all in advance,&lt;/P&gt;
&lt;P&gt;Daniela&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:04:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-variables-from-file-txt-in-tim5-hh-mm-format-using/m-p/237562#M55367</guid>
      <dc:creator>Daniela_P</dc:creator>
      <dc:date>2015-12-03T11:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Reading variables from file .txt in tim5. (hh:mm) format (using infile procedure)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Reading-variables-from-file-txt-in-tim5-hh-mm-format-using/m-p/237566#M55368</link>
      <description>&lt;P&gt;Use formatted input with the TIME5. &lt;EM&gt;in&lt;/EM&gt;format for this variable, i.e., replace "&lt;SPAN&gt;TIMEVAR $ 10-14" by "TIMEVAR time5.". You can then apply the TIME5. &lt;EM&gt;format&lt;/EM&gt; to TIMEVAR for display purposes.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2015 11:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Reading-variables-from-file-txt-in-tim5-hh-mm-format-using/m-p/237566#M55368</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2015-12-03T11:36:51Z</dc:date>
    </item>
  </channel>
</rss>

