Author |
Message
|
alechko |
Posted: Tue Nov 04, 2008 4:49 am Post subject: Generate a copybook from a messageset |
|
|
Apprentice
Joined: 12 Jan 2005 Posts: 37
|
Hi there,
Does anybody know of a possibility to generate a copybook from a mxsd?
I modified the CWF properties of Message Definition File and it would be very convenient to generate a copybook from it for our MF developers.
Any suggestions would be much appreciated.
Alik |
|
Back to top |
|
 |
kimbert |
Posted: Tue Nov 04, 2008 6:04 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Sorry - no plans to support this. What would the MF developers do with the copybook if you were able to generate it? |
|
Back to top |
|
 |
alechko |
Posted: Tue Nov 04, 2008 6:40 am Post subject: |
|
|
Apprentice
Joined: 12 Jan 2005 Posts: 37
|
They will be able to develop a cobol cics program that will receive these MQ messages.
Otherwise we would have to create the copybook by hand
Do you know a third-party program that does this generation?
I heard about XML Thunder but haven't tried it yet ...
Alik |
|
Back to top |
|
 |
Vitor |
Posted: Tue Nov 04, 2008 7:04 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
alechko wrote: |
They will be able to develop a cobol cics program that will receive these MQ messages.
Otherwise we would have to create the copybook by hand
|
Normally you'd take the copybook they require and generate a message set from that. Hence the tool provided to convert copybooks into message sets.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
alechko |
Posted: Tue Nov 04, 2008 7:07 am Post subject: |
|
|
Apprentice
Joined: 12 Jan 2005 Posts: 37
|
That's true when you integrate an existing cobol program to WMB.
What about new programs that exist in WMB and we want to develop in cics? |
|
Back to top |
|
 |
kimbert |
Posted: Tue Nov 04, 2008 3:07 pm Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
It is much more common for a message broker application to interface with an existing CICS application. Your requirement is perfectly valid, but quite rare.
Quote: |
Do you know a third-party program that does this generation?
I heard about XML Thunder but haven't tried it yet ... |
A COBOL copybook can contain all sorts of information about the physical layout of the data in memory. Stuff like byte alignment and endianness. The message definition file will contain that info in schema annotations, but there is no third-party tool which will automatically read and convert it.
If you really want a tool to automate the process, you will probably have to write it yourself. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Nov 05, 2008 2:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
alechko wrote: |
What about new programs that exist in WMB and we want to develop in cics? |
Programs don't exist in WMB, and by definition the broker can produce data in any format required by an external application. Hence you usually start with the external application (which is usually more restricted in terms of possible data layout, especially for CICS) and incorporate that into WMB. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|