Author |
Message
|
Missam |
Posted: Tue Jan 27, 2004 8:34 am Post subject: Abend Error |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Hi
I working on MQSI2.1 CSD 2 Environment.I had a requirement where i need to transform xml to TDS Delimited.
When i assign values directly to OutputTree such as
Code: |
SET OutputRoot.MRM.Message.Element.Field1 = inptr.Field1;
SET OutputRoot.MRM.Message.Element.Field1 = inptr.Field1;
|
It works fine
but when i use pointers like
Code: |
DECLARE outptr REFERENCE TO OutputRoot.MRM.Message.Element;
CREATE LASTCHILD OF OutputRoot.MRM.Message DOMAIN 'MRM' NAME 'Element';
MOVE outptr TO OutputRoot.MRM.Message."Element"[LAST];
SET outptr.Field1 = inptr.Field1;
SET outptr.Field2 = inptr.Field2;
|
Its giving the Abend Error
Quote: |
BIP2228E: Severe error: /build/S210_P/src/CommonServices/Unix/ImbAbend.cpp 401 signal received Abend file: /mqsi/errors/BROKER.EX_GROUP.246.15.abend action: abort
WMQIv210[271]: [ID 115796 auth.notice] dangerous format in message file: "6008" -> "Data truncated, column %n1."
|
Can Any Body Tell where is the Problem. |
|
Back to top |
|
 |
fjcarretero |
Posted: Tue Jan 27, 2004 9:13 am Post subject: |
|
|
Voyager
Joined: 13 Oct 2003 Posts: 88
|
Hi,
I think the problem is that OutputRoot.MRM.Message is null when you call the CREATE statement.
Try inserting
Code: |
CREATE FIELD OutputRoot.MRM.Message |
before the CREATE FIRSTCHILD.
Cheers
Felipe |
|
Back to top |
|
 |
Missam |
Posted: Tue Jan 27, 2004 10:14 am Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Yeah i did to give a shot,but no use
create lastchild itself creates the entire tree structure. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Jan 27, 2004 12:17 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You have to CREATE before you can DECLARE REFERENCE.
That is, you can't declare a reference to a field that doesn't exist yet.
Try moving your CREATE LASTCHILD before your Declare Reference. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
Missam |
Posted: Tue Jan 27, 2004 12:53 pm Post subject: |
|
|
Chevalier
Joined: 16 Oct 2003 Posts: 424
|
Sorry No Use.Still Problem Persists |
|
Back to top |
|
 |
mgk |
Posted: Wed Jan 28, 2004 12:51 am Post subject: |
|
|
 Padawan
Joined: 31 Jul 2003 Posts: 1642
|
I can't be sure from the information provided, but I think this may have been fixed in a more recent CSD. _________________ MGK
The postings I make on this site are my own and don't necessarily represent IBM's positions, strategies or opinions. |
|
Back to top |
|
 |
Meow |
Posted: Wed Jan 28, 2004 9:20 am Post subject: |
|
|
 Voyager
Joined: 25 Jun 2003 Posts: 95
|
Have you tried this
MOVE outptr TO OutputRoot.MRM.Message."Element".*[LAST];
i am not sure what does this represent:
MOVE outptr TO OutputRoot.MRM.Message."Element"[LAST];
Thanks,
Pavan |
|
Back to top |
|
 |
|