Results 1 to 2 of 2
  1. #1
    renu is offline Senior Member
    Join Date
    May 2010
    Rep Power

    Question How to reject the Input file processing, if atleast one field hits a wrong value.


    The program I am working on gets some (30 input files), each input file is processed separately reading each field value and the field value is checked against its edit checks.
    If the edit check fails for the field value, the Input file should not be processed further.
    The Input file has to be rejected, the output file created has to be deleted from the location it has been created.

    For each the Input file is "SchoolData.csv" and it contains

    SchoolID,NetworkID,LicenseNo.,ParentID,StudentID,A ddress -------> field values.

    The SchoolID value must be 14 characters. If it is less than 14 or more than 14, in any record read, the complete input file should not be processed further and it has to be rejected and the Output File created for this Input file should also be rejected.

    Please help me, how to reject the Input file, even if one record fails in the field size.

    Thank You

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: How to reject the Input file processing, if atleast one field hits a wrong value.

    Moved from Advanced Java. Please don't post homework questions in that section.

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. BankAccount, how to reject negative amounts? PLEASE HELP!
    By armedrabbit in forum New To Java
    Replies: 6
    Last Post: 03-07-2011, 03:12 AM
  2. Processing input - Very simple but I can't do it
    By Hitsuin in forum New To Java
    Replies: 1
    Last Post: 08-23-2010, 03:31 PM
  3. Replies: 2
    Last Post: 08-21-2010, 10:53 AM
  4. Replies: 12
    Last Post: 09-23-2009, 09:14 AM
  5. Problem in reading HTML input field while uploading file
    By sudipanand in forum Java Servlet
    Replies: 1
    Last Post: 11-27-2008, 09:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts