Re: Duplicate input files
- From: "Alistair" <alistair@xxxxxxxxxxxxxxxxxxxxx>
- Date: 21 Aug 2006 11:58:49 -0700
ballantine@xxxxxxxxxxxx wrote:
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.
I think this won't work. At a guess, my colleague seems to want to
match one input file against its' duplicate (God knows why), so
separate record areas needed on 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
- Re: Duplicate input files
- From: ballantine
- Duplicate input files
- Prev by Date: Re: Duplicate input files
- Next by Date: Re: Duplicate input files
- Previous by thread: Re: Duplicate input files
- Next by thread: Re: Duplicate input files
- Index(es):
Relevant Pages
|