Hello,
The following could be used.
Can you share the example that you found for the 1D and perhaps I might provide a similar example for the 2D.
DECLARE ptrArray REFERENCE TO OutputRoot;
CREATE LASTCHILD OF ptrArray AS ptrArray TYPE Name NAME 'Array';
DECLARE ptrData REFERENCE TO OutputRoot;
CREATE LASTCHILD OF ptrArray AS ptrData TYPE Name NAME 'Array';
CREATE LASTCHILD OF ptrData TYPE NameValue NAME 'Data' VALUE 'String 1';
...
CREATE LASTCHILD OF ptrArray AS ptrData TYPE Name NAME 'Array';
CREATE LASTCHILD OF ptrData TYPE NameValue NAME 'Data' VALUE 'Hello 1';
...
------------------------------
Pierre Richelle
IBM Hybrid Cloud Integration Specialists
IBM
bruxelles
0474681892
------------------------------
Original Message:
Sent: Wed May 13, 2020 12:58 AM
From: Savita Patil
Subject: Creating 2D Array using ESQL
Hi Ben,
Thanks for your reply.
I want something like this-
<Array civ:size="2"><Array civ:size="3" civ:index="0"> <Data civ:index="0">Hello 1</Data> <Data civ:index="1">Hello 2</Data> <Data civ:index="2">Hello 3</Data> </Array> <Array civ:size="3" civ:index="1"> <Data civ:index="0">String 1</Data> <Data civ:index="1">String 2</Data> <Data civ:index="2">String 3</Data> </Array></Array>
Thanks,
Savita
------------------------------
Savita Patil
Original Message:
Sent: Tue May 12, 2020 11:25 AM
From: Ben Thompson
Subject: Creating 2D Array using ESQL
Please could you paste the output message you are aiming for ... this would enable us to interpret precisely what you mean by "2D array", and then advise on the required ESQL.
------------------------------
Ben Thompson
IBM UK
Original Message:
Sent: Tue May 12, 2020 10:14 AM
From: Savita Patil
Subject: Creating 2D Array using ESQL
Hi There,
I was wondering if there is a way to output 2D array in message assembly through Compute node using ESQL ?
I am able to find an example of append an element of 1D array in output but not 2D element.
Thanks,
Savita
------------------------------
Savita Patil
------------------------------