Announcement Announcement Module
Collapse
No announcement yet.
FlatFileReader with header, trailer and common records Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • FlatFileReader with header, trailer and common records

    Hi,

    I have a file in the following format:

    Header record
    item1
    item2
    ...
    itemn
    common-item
    Trailer record

    My batch requirement is:

    Ensure that the number of items in the file match with the number reported in the trailer record.

    Attach the common item to each item and then process each item in parrallel.

    How can I achieve this?

  • #2
    Probably the best thing is to have a pre-processing step where you rip though without parsing the items, but count the lines and validate the file, then pick up the "common-item" and stash it somewhere (e.g. the JobExecution ExecutionContext so it is available on a restart).

    Comment


    • #3
      Ok. Thanks. Will give it a try.

      Comment

      Working...
      X