<?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: output is right but there is error message in log file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102131#M258198</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now idon't see any error , dlm is tab but with out +1 i am getting this output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obs id dosedate &lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 001&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 002&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; 002&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp; 002&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp; 003&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;6&amp;nbsp;&amp;nbsp; 004&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2013 13:49:36 GMT</pubDate>
    <dc:creator>epr</dc:creator>
    <dc:date>2013-04-09T13:49:36Z</dc:date>
    <item>
      <title>output is right but there is error message in log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102129#M258196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;I am learning sas now . I am practicing some small projects posted online.&lt;/P&gt;&lt;P&gt;This is one clinical trials project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; rawdate&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Patient&lt;/TD&gt;&lt;TD&gt;Dose Date&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;01Jan2003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;001&lt;/TD&gt;&lt;TD&gt;02Jan2003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;15Mar2003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;002&lt;/TD&gt;&lt;TD&gt;01Mar2003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;003&lt;/TD&gt;&lt;TD&gt;01Apr2003&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;004&lt;/TD&gt;&lt;TD&gt;19Mar2003&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created dataset using this code in sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data dose;&lt;/P&gt;&lt;P&gt;infile 'C:\Users\Contacts\Desktop\dose.txt' dlm='09'x dsd&amp;nbsp; firstobs=2;&lt;/P&gt;&lt;P&gt;input id $ 3. +1 dosedate date9.;&lt;/P&gt;&lt;P&gt;format dosedate date9.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got right output.This is output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obs id dosedate &lt;/P&gt;&lt;P&gt;1 001 01JAN2003 &lt;/P&gt;&lt;P&gt;2 001 02JAN2003 &lt;/P&gt;&lt;P&gt;3 002 15MAR2003 &lt;/P&gt;&lt;P&gt;4 002 01MAR2003 &lt;/P&gt;&lt;P&gt;5 003 01APR2003 &lt;/P&gt;&lt;P&gt;6 004 19MAR2003 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i see error in log file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: LOST CARD.&lt;/P&gt;&lt;P&gt;id=&amp;nbsp; dosedate=. _ERROR_=1 _N_=7&lt;/P&gt;&lt;P&gt;NOTE: 8 records were read from the infile 'C:\Users\Contacts\Desktop\dose.txt'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The minimum record length was 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The maximum record length was 13.&lt;/P&gt;&lt;P&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.DOSE has 6 observations and 2 variables.&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.04 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are only six records in Rawdata. But sas reading 8 records .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help to understand this logfile.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 13:14:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102129#M258196</guid>
      <dc:creator>epr</dc:creator>
      <dc:date>2013-04-09T13:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: output is right but there is error message in log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102130#M258197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try adding TRUNCOVER option to the INFILE statement to prevent SAS from trying to go to the next line if you read past the end of the line.&lt;/P&gt;&lt;P&gt;You do not need the +1 in the INPUT statement. If your data really has a tab ('09'x) between the id and the date then SAS will automatically start reading the value for the date after the tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 13:22:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102130#M258197</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-04-09T13:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: output is right but there is error message in log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102131#M258198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now idon't see any error , dlm is tab but with out +1 i am getting this output&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obs id dosedate &lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp; 001&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp; 002&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp; 002&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;4&amp;nbsp;&amp;nbsp; 002&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp; 003&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;P&gt;6&amp;nbsp;&amp;nbsp; 004&amp;nbsp;&amp;nbsp; . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 13:49:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102131#M258198</guid>
      <dc:creator>epr</dc:creator>
      <dc:date>2013-04-09T13:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: output is right but there is error message in log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102132#M258199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need colon or informat statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;input id :$3. dosedate :date9.;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 14:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102132#M258199</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-04-09T14:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: output is right but there is error message in log file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102133#M258200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most likely you have a space after the tab and before the date value. &lt;/P&gt;&lt;P&gt;Try using : modifier in front of the date format.&amp;nbsp; I worry that if your data is inconsistent about whether the extra character is there you might skip over the first actual digit of the date value using the +1 cursor movement command.&amp;nbsp; See example below using | in place of tabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile cards dlm='|' truncover ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input id 3. date :date9. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format date date9.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; put (id date) (=);&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;001|11jan2012&lt;/P&gt;&lt;P&gt;002| 11jan2012&lt;/P&gt;&lt;P&gt;003 21jan2012&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 14:05:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/output-is-right-but-there-is-error-message-in-log-file/m-p/102133#M258200</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-04-09T14:05:28Z</dc:date>
    </item>
  </channel>
</rss>

