Re: Duplicate input files
- From: ballantine@xxxxxxxxxxxx
- Date: 21 Aug 2006 08:11:07 -0700
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.
.
- Follow-Ups:
- Re: Duplicate input files
- From: Alistair
- Re: Duplicate input files
- References:
- Duplicate input files
- From: Alistair
- Re: Duplicate input files
- From: Michael Mattias
- Re: Duplicate input files
- From: Alistair
- Re: Duplicate input files
- From: ballantine
- Duplicate input files
- Prev by Date: Re: READING 2 RECS before write to PRINT REC
- Next by Date: dibol programming
- Previous by thread: Re: Duplicate input files
- Next by thread: Re: Duplicate input files
- Index(es):