I am trying to create a new message definition file from cobol copybook.
I am getting teh below error.
Quote:
PATRESD.cpy is expected to have just 01 level data structures or 77 level elementary data item definition(s), based on its file extension.You can change the file extension support by going into the "More COBOL options" tab of the COBOL importer preferences page (Window -> Preferences -> Importer -> COBOL).
Line No : 25 IGYDS1176-E The first level-number was not 01 for item "PAT-REQ-USER-ID". A level-number of 01 was assumed.
Line No : 25 IGYDS1052-E Group item "PAT-REQ-USER-ID" contained the "PICTURE" clause. The clause was discarded.
Please correct the error and try importing the file again.
My copybook starts with 05 level. If I add some element at 01 level, i am able to create the message set.
Can I add some elemnt at 01 level?
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
chris boehnke wrote:
Can I add some elemnt at 01 level?
You might want to ask the guy who gave you the copybook how they're talking the COBOL compiler into using the file. This will tell you what 01 level name they're using in the COBOL code so you can be consistent. WMB will only use the name for the message name, so it doesn't matter all that much except in terms of documentation.
But a COBOL structure must start with an 01 level. _________________ Honesty is the best policy.
Insanity is the best defence.
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