Re: Duplicate input files




ballantine@xxxxxxxxxxxx wrote:
" I suspect a program logic error but I wondered if Cobol
had a dislike of two sets of file handling routines pointing to the
same file..."


Try using the SAME RECORD AREA clause in the file-control paragraph.

Thanks, I'll pass that on to my friend. I expect it to be a
heart-stopper! Some years ago, he wrote a program for me with the same
record definition appearing for four output files. I re-wrote it using
SAME RECORD AREA AS and tested it. It worked perfectly. I then went on
holiday. When I came back, the program change had been "backed-out"
because "it didn't work". I don't believe him (and the project leader
for whom we worked) so I expect his face to pull a wobbly when I
mention same record area as.

However, I don't think it will resolve the problem...

.