Page 1 of 1

Appending the whole input file ?

PostPosted: Thu Sep 29, 2011 1:01 pm
by charlessxavier
Hi all,

I m processing a flat file thru easytrieve,
My job is to add a particular field in the input file which has numerous lines and to print it in the first line

I am processing each line and using a counter to store the value and print the same in first line

But i have to reproduce the same input file below the first line.. how can i do it ?

Or in other words is there any way to append the whole file after processing the whole input file ?

Re: Appending the whole input file ?

PostPosted: Thu Sep 29, 2011 5:01 pm
by BillyBoyo
charlessxavier wrote:Hi all,

I m processing a flat file thru easytrieve,
My job is to add a particular field in the input file which has numerous lines and to print it in the first line

I am processing each line and using a counter to store the value and print the same in first line

But i have to reproduce the same input file below the first line.. how can i do it ?

Or in other words is there any way to append the whole file after processing the whole input file ?


Charles,

It might be me being dense, but I can't understand what you want.

You have an input file
You add a field
You want to print the field (and something else from the file, maybe)

Then, and this is fourth time through it, I just loose the explanation.

If you can expand on what you are trying to do, maybe even the business explanation, as I think you might be getting "approach" stuck in the way of solution, then I'm sure we can assist. Some sample of input, and required output(s).

Thanks.

Re: Appending the whole input file ?

PostPosted: Fri Sep 30, 2011 1:44 am
by dick scherrer
Hello,

Post some sample input data and what you want as output when this input data is processed.

These do not need to be long records or many of them - just enough to demonstrate your requirement.

Once we understand the requirement, we may be able to make suggestions.