When I use it in Message set I get the following error:-
IGYDS1022-E A data-name or file-name definition was found outside of the "DATA DIVISION". Scanning was resumed at the next area "A" item or the start of the next entry.
It's the alignment problem. If you open the copybook with 'LPEX Editor' it will show any mis-alignment ( you will see red colored one ). You will see Column numbers in the Editor pane. You can not exceed column 7 and should start at column 1 at position A. If any field exceeds it start in next line ending with a '.' (dot).
Joined: 23 Sep 2003 Posts: 232 Location: IBM (Retired)
If this is the complete copybook, then I see several problems:
1. The line
Quote:
10 Q-PO-LINE-ITEM REDEFINES Q-PO-HDR.
is a redefinition of a field Q-PO-HDR that is not defined in the copybook.
2. Since a Redefine must follow the field definition being redefined, the prior level 10 is Q-DATA - which is also 60 bytes
2. The next Redefine
Quote:
10 MR-HDR REDEFINES Q-PO-LINE-ITEM.
has 40 bytes of date defined, but the Q-PO-LINE-ITEM defines 60 bytes of data.
Thus, I would suggest that you change the first redefine to:
Quote:
10 Q-PO-LINE-ITEM REDEFINES Q-DATA.
and then add a
Quote:
15 FILLER PIC X(20).
following the second redefine.
Finally, do as vsr suggests - the COBOL importer requires that you supply a valid COBOL copybook. Hint: Never use tabs for spacing. _________________ Bill Matthews
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum