<?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: HELP for basic SAS: how to read and print all ? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/HELP-for-basic-SAS-how-to-read-and-print-all/m-p/6406#M2060</link>
    <description>I believe the original question was:&lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Hello,&lt;BR /&gt;
I am new hand in SAS and I met a trouble when I used the SAS to read the data.csv files, the "time" was not correctly read, for example, "5/31/2007 23:00" become as "5/31/2007". How could I read the "time" correctly?&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Timexxxx          Value &lt;BR /&gt;
5/31/2007 23:00,1789&lt;BR /&gt;
1/11/2007 0:10,2631&lt;BR /&gt;
11/11/2007 0:20,1343&lt;BR /&gt;
11/12/2007 10:20,2343&lt;BR /&gt;
&lt;BR /&gt;
-------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
To answer this, one way would be the following&lt;BR /&gt;
&lt;BR /&gt;
data metrics;&lt;BR /&gt;
  length datestring $16;&lt;BR /&gt;
  infile datafile dlm=',' ;&lt;BR /&gt;
  input datestring $  value;&lt;BR /&gt;
  date = input(scan(datestring,1," "), mmddyy10.);&lt;BR /&gt;
  time = input(scan(datestring,2," "), hhmm.);&lt;BR /&gt;
&lt;BR /&gt;
  hh = hour(time);&lt;BR /&gt;
  mm = minute(time);&lt;BR /&gt;
  datetimestamp = dhms(date,hh,mm,00);&lt;BR /&gt;
&lt;BR /&gt;
  drop hh mm;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;</description>
    <pubDate>Thu, 17 Jan 2008 14:12:39 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-01-17T14:12:39Z</dc:date>
    <item>
      <title>HELP for basic SAS: how to read and print all ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/HELP-for-basic-SAS-how-to-read-and-print-all/m-p/6404#M2058</link>
      <description>Hello,&lt;BR /&gt;
If the file is so big, how to print all, &lt;BR /&gt;
Thank you very much?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Message was edited by: GooDclassmate

Message was edited by: GooDclassmate</description>
      <pubDate>Thu, 17 Jan 2008 00:19:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/HELP-for-basic-SAS-how-to-read-and-print-all/m-p/6404#M2058</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-17T00:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: HELP for basic SAS: how to read and print all ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/HELP-for-basic-SAS-how-to-read-and-print-all/m-p/6405#M2059</link>
      <description>&amp;gt; Hello,&lt;BR /&gt;
&amp;gt; If the file is so big, how to print all, &lt;BR /&gt;
&amp;gt; Thank you very much?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Message was edited by: GooDclassmate&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Message was edited by: GooDclassmate&lt;BR /&gt;
&lt;BR /&gt;
Is this some error message you got?  In what application?  What were you trying to do?&lt;BR /&gt;
&lt;BR /&gt;
Generally I'd say that if a file is too big, printing it would be ill advised.  What will you do with the printout?  The paper waste is too horrible to contemplate.&lt;BR /&gt;
&lt;BR /&gt;
Consider printing a sample of the records in the file so you can develop the code to process the whole file electronically and intelligently.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Thu, 17 Jan 2008 02:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/HELP-for-basic-SAS-how-to-read-and-print-all/m-p/6405#M2059</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-17T02:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: HELP for basic SAS: how to read and print all ?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/HELP-for-basic-SAS-how-to-read-and-print-all/m-p/6406#M2060</link>
      <description>I believe the original question was:&lt;BR /&gt;
&lt;BR /&gt;
----------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
Hello,&lt;BR /&gt;
I am new hand in SAS and I met a trouble when I used the SAS to read the data.csv files, the "time" was not correctly read, for example, "5/31/2007 23:00" become as "5/31/2007". How could I read the "time" correctly?&lt;BR /&gt;
Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Timexxxx          Value &lt;BR /&gt;
5/31/2007 23:00,1789&lt;BR /&gt;
1/11/2007 0:10,2631&lt;BR /&gt;
11/11/2007 0:20,1343&lt;BR /&gt;
11/12/2007 10:20,2343&lt;BR /&gt;
&lt;BR /&gt;
-------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
To answer this, one way would be the following&lt;BR /&gt;
&lt;BR /&gt;
data metrics;&lt;BR /&gt;
  length datestring $16;&lt;BR /&gt;
  infile datafile dlm=',' ;&lt;BR /&gt;
  input datestring $  value;&lt;BR /&gt;
  date = input(scan(datestring,1," "), mmddyy10.);&lt;BR /&gt;
  time = input(scan(datestring,2," "), hhmm.);&lt;BR /&gt;
&lt;BR /&gt;
  hh = hour(time);&lt;BR /&gt;
  mm = minute(time);&lt;BR /&gt;
  datetimestamp = dhms(date,hh,mm,00);&lt;BR /&gt;
&lt;BR /&gt;
  drop hh mm;&lt;BR /&gt;
run;&lt;BR /&gt;
quit;</description>
      <pubDate>Thu, 17 Jan 2008 14:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/HELP-for-basic-SAS-how-to-read-and-print-all/m-p/6406#M2060</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-17T14:12:39Z</dc:date>
    </item>
  </channel>
</rss>

