Break out of tJavaRow

One Star

Break out of tJavaRow

Is there anyway to go to the next record without inserting the existing record that tJavaRow is parsing?
I used the java break; command it just kills the job.
I'm trying to skip the record and go to the next.
I understand its a big for loop.
One Star

Re: Break out of tJavaRow

Hi
Let's say we have the following data below.
id; name
1; a
2; b
3; c
If we only want the first two rows, the code in tJava should be like this.
if(input_row.id<3)
output_row.id = input_row.id;
// if input_row.id =3 do nothing

Regards,
Pedro
Seven Stars

Re: Break out of tJavaRow

Use continue rather than break.