|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Copybook doesn't allow multiple 'depending on' statements. |
« View previous topic :: View next topic » |
Author |
Message
|
Roel |
Posted: Mon Dec 17, 2007 12:59 am Post subject: Copybook doesn't allow multiple 'depending on' statements. |
|
|
Newbie
Joined: 12 Dec 2007 Posts: 4 Location: The Netherlands
|
Hi,
We have some copybook problems while migrating projects from WMB toolkit 5 to 6.
There are some copybooks which are having groups that can occur 0 to x times. depending on the value provided in a field.
The below code has worked fine in version 5, and the existing generated mxsd files are valid and functioning in version 6. We can deploy the messagesets on a 6 broker using a 6 toolkit.
BUT, when we generate a new 'message definition file' from the copybook, we get these error messages:
Quote: |
IGYGR1137-S "OCCURS DEPENDING ON" object "ATLVARIANT-KC0V0304" was defined in a variably located area. Execution results are unpredictable. |
Code: |
02 ATLAFWVRZADRS-KC0V0304 PIC 9(01)
VALUE ZERO.
02 G-AFWVERZADRES-KC0V0304 OCCURS 0 TO 9
DEPENDING ON ATLAFWVRZADRS-KC0V0304.
03 REGEL-KC0V0304 PIC X(40)
VALUE SPACE.
02 ATLVARIANT-KC0V0304 PIC 9(02)
VALUE ZERO.
02 G-VARIANT-KC0V0304 OCCURS 0 TO 99
DEPENDING ON ATLVARIANT-KC0V0304.
03 VARZVLGNR-KC0V0304 PIC 9(02)
VALUE ZERO.
03 ATLWFD-KC0V0304 PIC 9(02)
VALUE ZERO.
03 G-WFD-KC0V0304 OCCURS 0 TO 99
DEPENDING ON ATLWFD-KC0V0304.
04 VRAAGID-KC0V0304 PIC 9(05)
VALUE ZERO.
04 VRAAG-KC0V0304 PIC X(255)
VALUE SPACE.
04 ANTWOORD-KC0V0304 PIC X(255)
VALUE SPACE.
|
Does somebody has a solution for this problem?
It is working fine with version 5, and of course we prefer to change code as little as possible.
Thanks in advance! _________________ Regards,
Roel Traag |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Dec 17, 2007 4:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Looks like it's reading that 02 group as a 03. Make sure you have the indentation right when parsing the copybook.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
Roel |
Posted: Mon Dec 17, 2007 5:14 am Post subject: |
|
|
Newbie
Joined: 12 Dec 2007 Posts: 4 Location: The Netherlands
|
We have tested it with correct indentation, but that doesn't work either.
If we test it with just one depending group, everything is ok. But if we set more depending groups it keeps giving errors. It doesn't care if we have these groups on the same level, or put a group in a goup in a group....
We have noticed that the version 6 toolkit is much stricter than version 5. In the past we used underscores in copybooks, and we had to replace those with a '-' character.
Maybe it isn't allowed to have multiple 'depending on' groups? _________________ Regards,
Roel Traag |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Dec 17, 2007 1:30 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
We have multiple depending on groups but all the indexes are up front before any of the groups.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|