input and output file description.
Posted: Sat May 15, 2010 2:58 am
I am trying to copy one records from an input file, say FILE1, to an output file,say FILE2. the input and output files are sequentially organized and access mode is sequential too. Now my question is do I have to have the same file description of the files.
like say.
Now should the output file description be same or can vary if needed?
working on z10 record length 80.
like say.
.....
PROGRAM DIVISION.
FD FILE1.
01 FILE1-REC.
05 NAME PIC X(10).
05 PHONE-NUMBER PIC 9(13).
05 FILLER PIC X(57).
PROGRAM DIVISION.
FD FILE1.
01 FILE1-REC.
05 NAME PIC X(10).
05 PHONE-NUMBER PIC 9(13).
05 FILLER PIC X(57).
Now should the output file description be same or can vary if needed?
FD FILE2.
01 FILE2-REC.
05 NAME1 PIC X(10).
05 PHONE-NUMBER1 PIC 9(13).
05 FILLER PIC X(57).
01 FILE2-REC.
05 NAME1 PIC X(10).
05 PHONE-NUMBER1 PIC 9(13).
05 FILLER PIC X(57).
working on z10 record length 80.