Author |
Message
|
EKhalil |
Posted: Tue Feb 07, 2006 7:35 am Post subject: Cobol CPY import containing redefine clauses |
|
|
Voyager
Joined: 29 Apr 2003 Posts: 99 Location: Boston, MA
|
WBIMB 5 fp 5
Has anyone have positive or negative experiences using message models based on cobol .cpy's with multiple redefine clauses ???
Any imput would be greatly appreciated !!! |
|
Back to top |
|
 |
dilse |
Posted: Wed Feb 08, 2006 9:19 am Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
EKhalil,
With REDEFINES clauses you have to dynamically resolve the choice element but the big negative I faced was not able to debug the message flow successfully when you have multiple REDEFINES clauses.
Dilse. |
|
Back to top |
|
 |
EKhalil |
Posted: Wed Feb 08, 2006 10:45 am Post subject: Thanks :) |
|
|
Voyager
Joined: 29 Apr 2003 Posts: 99 Location: Boston, MA
|
Hey thanks for sharing...
Resolving them dynamically...I thought that once the import was successful the integrator would know what to do without the requirement of any further intervention - unless of course I'm not following...
Unfortunately we have multiple redefines within the .cpy. For now I rewrote the copybook in order to speed up the development. I'm also waiting for a response from IBM so maybe I'll will be able to shed some light on this issue...
Thanks again,
Eva |
|
Back to top |
|
 |
JT |
Posted: Wed Feb 08, 2006 12:21 pm Post subject: |
|
|
Padawan
Joined: 27 Mar 2003 Posts: 1564 Location: Hartford, CT.
|
dilse wrote: |
dynamically resolve the choice element |
To expound a little on what I think dilse meant by this statement: through your ESQL code, you would make a determination (based on some factor: i.e a field value in the input message) as to the choice (re: which part of the redefines area) you wished to access. Once a single reference is issued against a choice, the parser ignores the other choice for that redefined area. This holds true for each redefined area contained in the message.
you wrote: |
I thought that once the import was successful the integrator would know what to do without the requirement of any further intervention |
It does. The extent of your intervention relates to how you write your ESQL code. |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Feb 08, 2006 12:26 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Also, the MRM, for some types of messages that can be modelled from COBOL copy books, use information that is in the message to resolve the choice itself.
For example, if you can model your message using the TDS parser, then the TDS parser can use tags to determine which of several possible redefines is in effect.
If you have to include things like Packed Decimals, you can't use TDS, and it's not likely that the MRM can resolve the choice for you. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
dilse |
Posted: Wed Feb 08, 2006 3:55 pm Post subject: |
|
|
 Master
Joined: 24 Jun 2004 Posts: 270
|
Yes JT. That's what I exactly meant. We need to write the ESQL code to resolve the choice element based on our condition(requirements).
But once you used one choice element in a group(redefines choices), you cannot comeback and change to other choice elements in that group. |
|
Back to top |
|
 |
LearnMQSI |
Posted: Mon Feb 13, 2006 7:31 pm Post subject: Importing a Cobol Copybook Structure into MQSI 2.1 |
|
|
 Centurion
Joined: 20 Aug 2002 Posts: 137
|
Hi Guys,
I need to import a Cobol Copybook structure into MQSI 2.1. I did not do this before and I don't know where to start it within Control Center.
If anybody can give me some idea to start, I will pick it up.
Always thanks ful for all your ideas _________________ IBM Certified System Administrator - WebSphere MQ 5.3 |
|
Back to top |
|
 |
shalabh1976 |
Posted: Mon Feb 13, 2006 9:02 pm Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
See the Documentation under Working with messages. Chapter 8 : Working with MRM messages in the Control Center covers what you want. _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
|