Page 1 of 1

How to update the Position automatically after everyrun?

PostPosted: Thu Dec 01, 2011 5:18 pm
by pjagathis
Hi all,

I want to match the two files and for matched records i want to overlay One FIELD from File2 to File1...

After every RUN, the Overlaying field will be offset by 10 bytes..
For example ,

for first run file 1 - overlay field - 10-10
for second run file1 - overlay fields- 20-10

but the offset value will be fixed.. as 10..

Please help me to update the position in OUTREC automatially.

Re: How to update the Position automatically after everyrun?

PostPosted: Thu Dec 01, 2011 5:34 pm
by MrSpock
I imagine that you're going to have to store the last position, or the next position, in a dataset so it can be acessed between runs, or, maybe somewhere within one of your two input datasets. What's your plan?

Re: How to update the Position automatically after everyrun?

PostPosted: Thu Dec 01, 2011 6:03 pm
by BillyBoyo
We need a much fuller description of what you are trying to do.

Including, for instance, what to do when you "run out" of record.

How you ensure the integrity of the position from the previous day (so that you do not overwrite existing data, or put data elsewhere to be overwritten later).

I'd already expect you to want to write a program to do this, rather than trying to get everything into the sort....