0

I have a file to parse and process records from. It is working fine as line-by-line (parsing one record at a time).My requirement is I want to store the data present in first record while processing the next record. For example:

001 784 45 6267 3LDFG
002 655 32 5456 3FGHT
003 901 31 6648 5TTSD
004 782 95 7148 8RSWD
005 545 87 3424 9RFDE

Her I am having total 5 records, In processor it is working line-by line ,here I want to store the data element available at columns 5-7 columns 9-10 ,columns 12-15 in one place of each line. Problem is when processor processed one line ,the data of previous processed line got erased. And my requirement is I want to store the data element of first line while processing the 2nd line i:e the data of first line that I have stored should not remove. Sorry if I am not able to explain my problem in an easier way.. I am new to Batch processing

I have tried to store it in a Map/List but every time data is getting removed while processing next line .

Compo
  • 36,585
  • 5
  • 27
  • 39
Alicia
  • 1

0 Answers0