<?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: Reading Raw Data Error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547308#M151641</link>
    <description>&lt;P&gt;&lt;STRIKE&gt;Can you paste the datalines as well plz?&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;I can't see the data&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input date ddmmyy8.  amount;
format date date9. amount dollar16.2;
cards;
24/12/1856765
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 29 Mar 2019 18:58:43 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2019-03-29T18:58:43Z</dc:date>
    <item>
      <title>Reading Raw Data Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547307#M151640</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just experimenting with very basic raw data reading and I'm getting stumped with this error.&lt;/P&gt;&lt;P&gt;Any insight or help will be appreciated&lt;/P&gt;&lt;P&gt;The error shows the program I am running .. the raw data is&amp;nbsp;&lt;FONT face="andale mono,times"&gt;24/12/1856765&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;The first 8 characters is the date 24/12/18 i am trying to read with the informat ddmmyy8. but its throwing an error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;72&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;73 data test;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;74 input date :ddmmyy8. @9 amount;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;75 format date date9. amount dollar16.2;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;76 cards;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;FONT face="andale mono,times"&gt;NOTE: Invalid data for date in line 77 1-13.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;77 24/12/1856765&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&lt;FONT face="andale mono,times"&gt;date=. amount=$56,765.00 _ERROR_=1 _N_=1&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;FONT face="andale mono,times"&gt;NOTE: The data set WORK.TEST has 1 observations and 2 variables.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&lt;FONT face="andale mono,times"&gt;NOTE: DATA statement used (Total process time):&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 29 Mar 2019 18:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547307#M151640</guid>
      <dc:creator>jfaruqui</dc:creator>
      <dc:date>2019-03-29T18:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw Data Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547308#M151641</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Can you paste the datalines as well plz?&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRIKE&gt;I can't see the data&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
input date ddmmyy8.  amount;
format date date9. amount dollar16.2;
cards;
24/12/1856765
;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Mar 2019 18:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547308#M151641</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-03-29T18:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw Data Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547309#M151642</link>
      <description>&lt;P&gt;By using the colon modifier you told SAS to read all of the characters up to the next delimiter (or end of line) using the MMDDYY informat.&lt;/P&gt;
&lt;P&gt;Note that in list mode the INPUT statement ignores the width on the informat and uses the width of the actual next word of data.&amp;nbsp; SAS cannot make a date value with a year of&amp;nbsp;&lt;SPAN&gt;1,856,765.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Just remove the : from the INPUT statement.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 18:58:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547309#M151642</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-29T18:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Raw Data Error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547335#M151659</link>
      <description>&lt;P&gt;Thanks guys ... silly silly mistake ..&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 20:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Raw-Data-Error/m-p/547335#M151659</guid>
      <dc:creator>jfaruqui</dc:creator>
      <dc:date>2019-03-29T20:52:42Z</dc:date>
    </item>
  </channel>
</rss>

