|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Cobol copybook |
« View previous topic :: View next topic » |
Author |
Message
|
Ajju. |
Posted: Mon Jan 06, 2003 1:10 pm Post subject: Cobol copybook |
|
|
 Voyager
Joined: 26 Jul 2002 Posts: 77
|
Hi guys!!
well i am working on CWF to XML converter using cobolcopy book as my input message.
I am not a cobol guy, so i wud appreciate if somebody hepls me to undertand a field in copybook which says that XXX occurs 8 times.(XXX is 2bytes in length)
does this means that the XXX field may occur 1 to 8 times that is, is the copybook a variable lenth copybook?
or
does it means that even if the data is not present in that field the total lenth wud be 8 * 2 bytes in length.
Thanks in adv,
Ajju. |
|
Back to top |
|
 |
kirani |
Posted: Mon Jan 06, 2003 4:21 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Ajju,
It means XXX field occurs fixed number of times (8 times) in the input record, it's like defining an array with 8 index.
When you import this copybook into MRM, it will create an element XXX with min and max occurs set to 8, you can refer to this element like this,
InputRoot.MRM.XXX[1] - First occurance.
InputRoot.MRM.XXX[2] - Second occurance
and so on... _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
Ajju. |
Posted: Tue Jan 07, 2003 5:47 am Post subject: |
|
|
 Voyager
Joined: 26 Jul 2002 Posts: 77
|
thanks kiran,
this answers my question!!
Ajju. |
|
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
|
|
|
|