I presume you want to read each number as a record. The problem is: data is not compatible with your desire, last number is not delimited by a ",".
If you can't change the data, you could read all the input in a single record, using:
record
string("\n") val;
end
then use a normalize component to split the record:
out :: length(in) =
begin
out :: length_of(string_split(in.val, ","));
end;
out :: normalize(in, index) =
begin
let string(";")[5] my_vec;
my_vec = string_split(in.val, ",");
out.val :: decimal_lpad( my_vec[index], 5 );
end;
(there are probably better solutions, I am still not an expert, but there wasn't an answer yet)