<?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: Importing issue in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Importing-issue/m-p/245338#M268548</link>
    <description>&lt;P&gt;You're not using SAS 9.4, are you? Just add the option &lt;STRONG&gt;LRECL=1000&lt;/STRONG&gt; to your INFILE statement and the error should disappear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;Explanation: The default of LRECL (actually the system option with this name) has been increased from 256 to 32767 in SAS 9.4 (exception: RECFM=F). Your data had record lengths up to 403, so "&lt;FONT face="courier new,courier"&gt;SAS went to a new line when INPUT statement reached past the end of a line.&lt;FONT face="arial,helvetica,sans-serif"&gt;" This message must have appeared in your SAS log, plus notes about "Invalid data" (and probably a "WARNING: Limit set by ERRORS= option reached. ...") as well as notes "LOST CARD" and "One or more lines were truncated."&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Moreover, your dataset would have contained only 52 observations instead of 105, right? In fact, all observations with TRADETIME 0:00, 8:00 and 16:00 were lost due to the errors.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jan 2016 23:02:40 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2016-01-21T23:02:40Z</dc:date>
    <item>
      <title>Importing issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-issue/m-p/245320#M268547</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am importing the attached file into SAS.&lt;/P&gt;
&lt;P&gt;All the Date Time are correctly imported.&lt;/P&gt;
&lt;P&gt;Somehow, Sas cannot import number.&lt;/P&gt;
&lt;P&gt;It skips records of data as well, say the tradetime of 8:00:00 , 16:00:00 and 0:00:00.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me to correct my code below?&lt;/P&gt;
&lt;P&gt;Thank you so much for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt; data mt4;&lt;BR /&gt;infile "\book3.txt" firstobs=2&lt;BR /&gt; dsd dlm=';' ;&lt;BR /&gt; informat date yymmdd10. tradetime time11. ;&lt;BR /&gt; input Rate $ TimeFrame $ date tradetime Open Close High Low &lt;BR /&gt; adx_main adx_plus adx_minus cci ma50 ma15 ma5 ma25 sar stddev atr demarker force macd_5_15 macd_5_50 macd_15_50 macd_long_main macd_long_signal &lt;BR /&gt; macd_medium_main macd_medium_signal macd_short_main macd_short_signal rsi_short rsi_long sto_long_fast sto_long_slow sto_short_fast sto_short_slow mfi_14 mfi_24 &lt;BR /&gt; fractal_up fractal_down Bband130_main Bband130_upper1 Bband130_lower1 Bband130_upper2 Bband130_lower2 Bband130_upper3 Bband130_lower3 &lt;BR /&gt;;&lt;BR /&gt; format date date9. tradetime time8. ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 22:10:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-issue/m-p/245320#M268547</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2016-01-21T22:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Importing issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-issue/m-p/245338#M268548</link>
      <description>&lt;P&gt;You're not using SAS 9.4, are you? Just add the option &lt;STRONG&gt;LRECL=1000&lt;/STRONG&gt; to your INFILE statement and the error should disappear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit:&lt;/P&gt;
&lt;P&gt;Explanation: The default of LRECL (actually the system option with this name) has been increased from 256 to 32767 in SAS 9.4 (exception: RECFM=F). Your data had record lengths up to 403, so "&lt;FONT face="courier new,courier"&gt;SAS went to a new line when INPUT statement reached past the end of a line.&lt;FONT face="arial,helvetica,sans-serif"&gt;" This message must have appeared in your SAS log, plus notes about "Invalid data" (and probably a "WARNING: Limit set by ERRORS= option reached. ...") as well as notes "LOST CARD" and "One or more lines were truncated."&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="arial,helvetica,sans-serif"&gt;Moreover, your dataset would have contained only 52 observations instead of 105, right? In fact, all observations with TRADETIME 0:00, 8:00 and 16:00 were lost due to the errors.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jan 2016 23:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-issue/m-p/245338#M268548</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-01-21T23:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: Importing issue</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Importing-issue/m-p/245344#M268549</link>
      <description>Thank you so much. &lt;BR /&gt;You are right, I use 9.3.&lt;BR /&gt;HHC</description>
      <pubDate>Thu, 21 Jan 2016 23:09:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Importing-issue/m-p/245344#M268549</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2016-01-21T23:09:38Z</dc:date>
    </item>
  </channel>
</rss>

