I need 2 output file after reformating. See as below:
reformat.png
And here is the mapping code:
But after I run it, only the port 0 has record.
reformat.png
And here is the mapping code:
function integer transform() {
$out.0.Name = $in.0.Name;
$out.0.Age = str2integer($in.0.Age);
$out.1.Name = $in.0.Name;
return OK;
}
But after I run it, only the port 0 has record.
-
Hi,
Problem is in return value. "OK" submits just first port. See http://doc.cloveretl.com/documentation/ ... alues.html for reference. In your case "ALL" return value will help.
Please sign in to leave a comment.
Comments 1