cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi experts,

I am doing a file to file scenario in which i have to change the queue context is it possible? for simple context change we use ResultList.CC in advance UDF but what to do if we want to add a queue cahnge .To dig more deep into the problem i am explaining my scenario.

my output structure is <GROUP> .....(1 to unbounded)

<Records>....(1 to unbounded)

field1

field2

..

..

..

field13

In one group there can be many records and there will be multiple Groups.Suppose in my udf i want to add a queue change to add some field in other group then how will i achive it ? please guide me with ur inputs

Regards,

Saurabh

0 Likes
View Entire Topic
GabrielSagaya
Active Contributor
0 Likes

function myudf(String a[], ResultList result, Container container)

{

for(int i=0;i<a.length;i++)

{

if(!a<i>.equals(""))

result.addValue(a<i>);

else

result.addContextChange();

}

}

GabrielSagaya
Active Contributor
0 Likes

have addContextChange() in your UDF

function myudf(String a[], ResultList result, Container container)

{

for(int i=0;i<a.length;i++)

{

if(!a[<i>].equals(""))

result.addValue(a[<i>]);

else

result.addContextChange();

}

}