ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Copybook doesn't allow multiple 'depending on' statements.

Post new topic  Reply to topic
 Copybook doesn't allow multiple 'depending on' statements. « View previous topic :: View next topic » 
Author Message
Roel
PostPosted: Mon Dec 17, 2007 12:59 am    Post subject: Copybook doesn't allow multiple 'depending on' statements. Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 17, 2007 4:28 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Roel
PostPosted: Mon Dec 17, 2007 5:14 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 17, 2007 1:30 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Copybook doesn't allow multiple 'depending on' statements.
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.