<?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: Invalid data error in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Invalid-data-error/m-p/61403#M13341</link>
    <description>You can use any one of the CHARACTER type call functions to check your SAS variable values, as needed.  And based on the variable test results, optionally take action, such as sending an EMAIL with a summary report or some type of evidence revealed.  &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sat, 07 Aug 2010 14:40:04 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2010-08-07T14:40:04Z</dc:date>
    <item>
      <title>Invalid data error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-data-error/m-p/61401#M13339</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
We receive a file from external source system. We read the external file (ebcdic) with a layout and create SAS datasets.&lt;BR /&gt;
Some times, the file layout is getting changed by the source system which was not trapped by the SAS program. Our SAS program ran fine (with invalid data errors in the log file). Later we came to know about the layout change and when we printed few impacted variables, they were populated with junk values.&lt;BR /&gt;
&lt;BR /&gt;
Can anyone suggest me a best way to identify if there are junk values in the input file? Again we cannot check each and every variable for valid numeric or character as there are 1000s of variables in the input file.&lt;BR /&gt;
&lt;BR /&gt;
I cannot afford to abend the program if _ERROR_=1 also.&lt;BR /&gt;
&lt;BR /&gt;
Any help is well appreciated</description>
      <pubDate>Fri, 06 Aug 2010 22:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-data-error/m-p/61401#M13339</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-08-06T22:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-data-error/m-p/61402#M13340</link>
      <description>Does _error_=1 happen in the data step reading the EBCDIC input file?&lt;BR /&gt;
If yes, you might redirect erroneous records to an "alert" type of file and react to the file's mere existence any way you want.&lt;BR /&gt;
&lt;BR /&gt;
Somewhat like:&lt;BR /&gt;
[pre]&lt;BR /&gt;
filename alert "file_xyz_alert_&amp;amp;sysdate..txt" ;&lt;BR /&gt;
data ... ;&lt;BR /&gt;
  ...&lt;BR /&gt;
  if _error_=1 then do ;&lt;BR /&gt;
    file alert ;&lt;BR /&gt;
    put _infile_ ;&lt;BR /&gt;
    _error_ = 0 ;&lt;BR /&gt;
  end ,&lt;BR /&gt;
  ....&lt;BR /&gt;
run ;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Be aware however that this method may trap other errors as well.&lt;BR /&gt;
&lt;BR /&gt;
Robert</description>
      <pubDate>Sat, 07 Aug 2010 07:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-data-error/m-p/61402#M13340</guid>
      <dc:creator>Robert_Bardos</dc:creator>
      <dc:date>2010-08-07T07:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid data error</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Invalid-data-error/m-p/61403#M13341</link>
      <description>You can use any one of the CHARACTER type call functions to check your SAS variable values, as needed.  And based on the variable test results, optionally take action, such as sending an EMAIL with a summary report or some type of evidence revealed.  &lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 07 Aug 2010 14:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Invalid-data-error/m-p/61403#M13341</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-08-07T14:40:04Z</dc:date>
    </item>
  </channel>
</rss>

