Re: Duplicate input files



Sorry, I meant the I-O CONTROL paragraph. Here is an example:

FILE-CONTROL.

SELECT INP1-FILE ASSIGN TO LQIN1FIL.
SELECT INP2-FILE ASSIGN TO LQIN2FIL.
SELECT OUT0-FILE ASSIGN TO LQOUTFIL.

I-O-CONTROL.

SAME RECORD AREA FOR INP1-FILE, INP2-FILE.

I tried this & it works fine. The same file was used for both LQIN1FIL
& LQIN2FIL.


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.

.