Author |
Message
|
mqmaniac |
Posted: Sat May 13, 2006 6:04 pm Post subject: Copy Book Import In 2.1 Broker |
|
|
 Master
Joined: 27 Dec 2005 Posts: 201
|
Hi
I am Importing a Copybook whcih has the Following statement
05 D115-HIJU-DATE PIC S9(4) OCCURS 4 TIMES.
But,The Message set displays only one field and maps One Field in the Output.
My question is Should i Change the Message Set Structure to contain 4 fields or change the Copy book structure.
Please help.
I am using WMQI 2.1 CSD 9 |
|
Back to top |
|
 |
sirsi |
Posted: Sat May 13, 2006 9:14 pm Post subject: |
|
|
Disciple
Joined: 11 Mar 2005 Posts: 177
|
shouldnt the max occur be set to 4 for that element? |
|
Back to top |
|
 |
mqmaniac |
Posted: Sun May 14, 2006 10:32 am Post subject: |
|
|
 Master
Joined: 27 Dec 2005 Posts: 201
|
Thanks for the Reply,
The Max occurs and Min Occurs is set to 4 .
But when I send a message .which is a stream of characters,The Debugger only shows one Field instead of 4.
Is there any reason for this? |
|
Back to top |
|
 |
kimbert |
Posted: Mon May 15, 2006 1:13 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
But,The Message set displays only one field |
I don't understand what the problem is. D115-HIJU-DATE is a date field which repeats 4 times. The message set editor is displaying exactly that.
Quote: |
and maps One Field in the Output |
What do you mean? Message Sets don't 'map' anything. If any mapping is happening, it's being done by your message flow.
Quote: |
My question is Should i Change the Message Set Structure to contain 4 fields or change the Copy book structure. |
Neither. You should correct your message flow logic. I can't tell you how to do this, because I don't know what your input message looks like, what output message you want, or what your message flow looks like. If you provide that information, we might be able to help you. |
|
Back to top |
|
 |
mqmaniac |
Posted: Mon May 15, 2006 1:26 pm Post subject: |
|
|
 Master
Joined: 27 Dec 2005 Posts: 201
|
Thanks for the Reply.
I understand that and here is the Issue.
These is a Packed decimal field before that field,which is not being mapped properly.
This is the copy book:
01 D115-MST.
05 D115-PJSK-CODE PIC S9(9), COMP-3.
05 D115-PE-TYPE PIC S99.
05 D115-PNAME PIC X(30).
05 D115-AUTHORITY-NAME PIC X(30).
05 D115-ADD-ADDRESS PIC X(30).
05 D115-STREET-ADDRESS PIC X(30).
05 D115-CITY PIC X(20).
05 D115-STATE PIC XX.
05 D115-ZIP-CODE PIC S9(9), COMP-3.
05 D115-PNT-DATES OCCURS 4 TIMES.
10 D115-ON-DATE PIC S9(4).
10 D115-PEN-DATE PIC S9(4).
I generated sample data using the Cobol Data .
I have used an Input node whcih refrences the Message set.
When i debug,I see data Till the second COMP-3 field (ZIP-CODE)only and moreover...
The First COMP-3 fied has been imported as Integer with length -4
and second COMP-3 field has been imported as Paked Decimal.
Is there any propery to be set to use the Packed Decimal Fields in a Copy Book.I have never used packed Decimals before.. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon May 15, 2006 3:14 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Stop using the word "mapped". Please pay attention to this - MRM describes the message, it does not map it.
You will only confuse the rest of us if you keep using the word 'map', when you mean 'describe' or 'model'.
You can only model Packed Decimal fields in the CWF physical format of the MRM parser.
So you have to use CWF to model your message at least enough that you can convert the Packed Decimal to something else.
So if you are trying to use TDS, you are out of luck!
Also, please try and be exact and specific about the model, not about the Copybook you have tried to use to generate the model. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
mqmaniac |
Posted: Mon May 15, 2006 3:53 pm Post subject: |
|
|
 Master
Joined: 27 Dec 2005 Posts: 201
|
Thanks for the correction.
I am using the exact model described by copybook and i am not modifying it.
I am using CWF format only.
I will try to be more specific.
The Original Copy Book has the following code
05 D115-PJSK-CODE PIC S9(9), COMP-3.
88 FA-PAYEE VALUES ARE +89900 THRU +89904.
88 P-PEE VALUES ARE +89905 THRU +89960.
88 A-PYEE VALUES ARE +89250 THRU +89350.
88 HAZ-PEE VALUES ARE +70000 THRU +89249.
88 TAX-PE VALUES ARE +1 THRU +69999.
which, when used to import,created D115-PJSK-CODE as Integer with 4 Byte length with all the Enumerations.WHICH IT SHOULDNT !!!!
I was under the impression that WMQI 2.1 CANNOT MAP ENUMERATIONS FOR A PACKED DECIMAL,So I deleted the Enumeration Content from the copy Book and Imported again....
This time,It Imported D115-PJSK-CODE as a Packed Decimal. with 5 byte count..But would give XML PARSE ERROR WHILE DEBUGGING.
I am using INPUTNODE-->OUTPUTNODE and the INPUTNODE references the Message Set.
I am using WMQI 2.1 CSD 9. |
|
Back to top |
|
 |
|