Hello all.
I have the following file definitions:
FILE FILEIN V 1046
FILEIN-RECORD 1 1046 A
FILEIN-FILLER1 1 25 A
FILEIN-BH 26 2 A
FILEIN-FILLER2 28 19 A
FILEIN-HDRDTE 43 8 A
FILEIN-TRAN-DT 47 6 A
FILEIN-FILLER3A 400 10 A
FILEIN-FILLER3 53 994 A
FILE FILEOUT V 1046
FILEOUT-RECORD 1 1046 A
Logic:
JOB INPUT (FILEIN)
WK-IN-LEN = FILEIN:RECORD-LENGTH
IF FILEIN-BH EQ 'BH'
MOVE '03/03/05' TO FILEIN-HDRDTE
GOTO EOJ-END
ELSE-IF FILEIN-BH EQ 'BT'
GOTO EOJ-END
ELSE
MOVE '010203' TO FILEIN-TRAN-DT
END-IF
EOJ-END
FILEOUT-RECORD = FILEIN-RECORD
FILEOUT:RECORD-LENGTH = WK-IN-LEN
PUT FILEOUT
At a certain point in the processing of the input file, we hit a S0C4 on the FILEOUT-RECORD = FILEIN-RECORD. We are not at EOF, so is there any other thoughts?