<?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: Notes or Warning? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249743#M47002</link>
    <description>&lt;P&gt;I think I found another source of problem. Please see my attached screen shot. It shows one of my csv files ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, my question is how to ask SAS to DELETE any non-consistant row (with the specified data type/format) while running the code?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12275i0A2C55CC9C18273F/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="1.jpg" title="1.jpg" /&gt;</description>
    <pubDate>Fri, 12 Feb 2016 16:44:19 GMT</pubDate>
    <dc:creator>almmotamedi</dc:creator>
    <dc:date>2016-02-12T16:44:19Z</dc:date>
    <item>
      <title>Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249558#M46966</link>
      <description>&lt;P&gt;I run my code (Data STEP: INFILE, INFORMAT, INPUT) to combine dozens of csv files without any error. However, I get a warning as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;WARNING: Limit set by ERRORS= option reached. &amp;nbsp;Further errors of this type will not be printed.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I check my log, I see these NOTES:&lt;/P&gt;&lt;P&gt;(these are just 3&amp;nbsp;of 352 notes I get, but the NOTES are mostly&amp;nbsp;similar)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;NOTE: Invalid data for VARIABLE1&amp;nbsp;in line 2234110 133-136.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;RULE: ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0 &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;2234110 '13,'IN99,'000001,2/1/1999,,,,10/7/2014,1,1,X,3,3,,1,1,1,N,N,,G,0,0,15120,15120,15120,15120,15120,E,&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;101 ,,P,5382100000,1,3780,Floor,X,,,None,,,,,,,,,|,,,15120,15120,40,40,,40,40 173&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;NOTE: Invalid data errors for file '"/v_share/ali/SCOPES/sas_dataset/Oct-08-2015/ScopesCalculations_SecondaryConstruction_*"'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;occurred outside the printed range.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;NOTE: Increase available buffer lines with the INFILE n= option.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please give me some hints?, where should I start to fix this?, should I be worried about this at all?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249558#M46966</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-11T22:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249559#M46967</link>
      <description>&lt;P&gt;Check how&amp;nbsp;you have specified the input for Variable1 and what is in that specific file. It's usually printed in the log so you can find it, since there's no input statement here or the rest of the log I can't comment beyond that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's usually a mismatch of types, ie trying to read variable1 in a specific format when it's actually in a different format. You'll need to modify your input statement and/or informat to fix it.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 22:37:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249559#M46967</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-11T22:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249566#M46968</link>
      <description>&lt;P&gt;So the note you posted is saying the characters 'None' are not valid for Variable1. &amp;nbsp;I assume because Variable1 is numeric. &amp;nbsp;But I am confused why you would be reading columns 133-136 of a line with 173 columns in a variable that you are calling Variable1. &amp;nbsp;Is it possible that you also got a note like :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 23:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249566#M46968</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-02-11T23:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249679#M46988</link>
      <description>&lt;P&gt;Here is the what I did: &amp;nbsp;I imported only one (of dozens) file using DATA IMPORT WIZARD into SAS. Then, I checked how SAS specified numeric or character types to each variable (column). Next, I wrote the wildecard code and I applied the same type (character, or numeric) for my variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I had so many variables, I did this shortcut (if its a shortcut!) instead of using data dictionary.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:40:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249679#M46988</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-12T14:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249687#M46991</link>
      <description>&lt;P&gt;PROC IMPORT will only guess at the types and lengths for the fields based on what it sees. &amp;nbsp;The error you got could be caused by a character variable that was empty in the sample file you used and so SAS made the variable as character. &amp;nbsp;The other possibility is that the files are not made consistently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can probably generate the data step faster and better from the data dictionary, especially if the dictionary is available as a dataset. &amp;nbsp;The code the PROC IMPORT generates is very ugly. &amp;nbsp;What you should generate is something that follows this pattern:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;LENGTH or ATTRIB statements to define the variables.&lt;/LI&gt;
&lt;LI&gt;INFORMAT statement for the variables that need them. &amp;nbsp;Do NOT attach informats to character variables (unless you want to preserve leading spaces then used $CHAR informat) or ordinary numeric variables. Note that if you use ATTRIB statement you can add the INFORMAT setting there.&lt;/LI&gt;
&lt;LI&gt;FORMAT statement for variables that need them. Do NOT attach formats to character variables .&lt;/LI&gt;
&lt;LI&gt;Then you input statement can use a variable range so it becomes simply: &amp;nbsp;INPUT firstvar -- lastvar ;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249687#M46991</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-02-12T14:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249689#M46992</link>
      <description>&lt;P&gt;Since SAS is identifying the variable that generates the error, it should be trivial to compare the input/informat for that variable to your data dictionary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How are they specified in eacH?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 14:56:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249689#M46992</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-12T14:56:33Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249697#M46993</link>
      <description>&lt;P&gt;I think I found the cause of problem !! , it seems that every Note occures exactly for the first row of my new file (in the wildecard code). In fact, the code cannot recognize that the first row of each new file is a "header".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Asuuming that it is the issue, could you please advise how to modify the code?, how to revise my INFILE statement to recognize the headers?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 15:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249697#M46993</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-12T15:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249702#M46994</link>
      <description>&lt;P&gt;You change your input statement and add EOV to your infile statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a writeup on the process, read the comments. To use the code,&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;replace the input statement with your input&lt;/LI&gt;
&lt;LI&gt;add your informat&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;customize the infile statement to your wildcard path&lt;/LI&gt;
&lt;LI&gt;add any additional options you used.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 15:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249702#M46994</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-12T15:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249731#M46999</link>
      <description>&lt;P&gt;Nice! I ran a test code (with only couple of variables), with NO&amp;nbsp;warning&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;infile "/v_share/ali/abcd/sas_dataset/Oct-08-2015/Calculations_Secondary_*" linesize = 300 firstobs = 2 eov = eov &amp;nbsp;DSD ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;Informat &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;C_ST $3.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;C_DSTRB_AREA $5.0&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;N_RSK $7. &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;COT00503D_SRVY $10.0;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;input @ ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;if eov then do ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;eov = 0 ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;delete ;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;end ;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;input&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;C_ST $&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;C_DSTRB_AREA $&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;N_RSK $&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;COT00503D_SRVY $;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;FONT color="#3366FF"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;And I got excited! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; However, when I add the other variables, I get the warning again. I am reading through the log again ...&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249731#M46999</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-12T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Notes or Warning?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249743#M47002</link>
      <description>&lt;P&gt;I think I found another source of problem. Please see my attached screen shot. It shows one of my csv files ..&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, my question is how to ask SAS to DELETE any non-consistant row (with the specified data type/format) while running the code?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12275i0A2C55CC9C18273F/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="1.jpg" title="1.jpg" /&gt;</description>
      <pubDate>Fri, 12 Feb 2016 16:44:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Notes-or-Warning/m-p/249743#M47002</guid>
      <dc:creator>almmotamedi</dc:creator>
      <dc:date>2016-02-12T16:44:19Z</dc:date>
    </item>
  </channel>
</rss>

