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 » Copy Book Import In 2.1 Broker

Post new topic  Reply to topic
 Copy Book Import In 2.1 Broker « View previous topic :: View next topic » 
Author Message
mqmaniac
PostPosted: Sat May 13, 2006 6:04 pm    Post subject: Copy Book Import In 2.1 Broker Reply with quote

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
View user's profile Send private message
sirsi
PostPosted: Sat May 13, 2006 9:14 pm    Post subject: Reply with quote

Disciple

Joined: 11 Mar 2005
Posts: 177

shouldnt the max occur be set to 4 for that element?
Back to top
View user's profile Send private message
mqmaniac
PostPosted: Sun May 14, 2006 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message
kimbert
PostPosted: Mon May 15, 2006 1:13 am    Post subject: Reply with quote

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
View user's profile Send private message
mqmaniac
PostPosted: Mon May 15, 2006 1:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Mon May 15, 2006 3:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
mqmaniac
PostPosted: Mon May 15, 2006 3:53 pm    Post subject: Reply with quote

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

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Copy Book Import In 2.1 Broker
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.