I have several files sequentiels in a repertory, and a job which treats the whole of the files of the repertory.
Each one of these files contain a first recording different from the others (cutting different).
Code: Select all
File_1 INPUT
Line 1 : AAA12345ZZZZZZZZZZ
Line2 : 38890BBBBBCCCDDDDD
Line2 : 99990EEEEEESSSVVVVV
File_2 INPUT
Line 1 : XXX88888ZZZZZZZZZZ
Line2 : 38890TTTTTUUUDDDDD
Line2 : 99990AAAARRRGGGGGG
OUTPUT
1234538890BBBBBCCCDDDDD
1234599990EEEEEESSSVVVVV
8888838890TTTTTUUUDDDDD
8888899990AAAARRRGGGGGG
I must recover information in the first line of each file. I make a test:
If @INROWNUM = 1 then I recover the value in the first line, and I store it in a stage variable.
This test functions for the first file, but as soon as the job treats the following files of the repertory, variable @INROWNUM is not re-initialized, and my test does not go any more.
Somebody have a solution?
One spoke to me about the columns generator, but I do not know how to count the lines with this stage.
Thank you very much