Originally posted by: paul.brett
Set the row delimiter to Infix, and let the engine just 'ignore' the fact that there's no 'last' record. Your trace should show something like:
(Level 1: Offset 9, len 7, comp 1 of 1, #2, DI 0000000A:)
Data at offset 9 ('1,2,3,4') was found to be of TYPE
X'0003' (Row root).
(Level 2: Offset 18, len 0, comp 1 of 4, #1, DI 0000000B:)
Data at offset 18 ('(end of data)') was found to be of TYPE
X'0005' (TextItem1 TextItem root).
(Level 2: Offset 18, len 0, comp 2 of 4, #1, DI 0000000B:)
COMPONENT number 2 of TYPE X'0003' (Row root)
is required, but does not exist.
(Level 1: Offset 18, len 0, comp 1 of 1, #3, DI 0000000B:)
COMPONENT number 1 of TYPE X'0002' (File root):
occurrence 3 is optional and has no content.
(Level 0: Offset 0, len 18, comp 1 of 0, #1, DI 0000000B:)
Data at offset 0 ('a,b,c,d<CR><LF>1,2,3,4') was found to be of TYPE
X'0002' (File root).
INPUT 1 was valid.
I hope that helps.
Thank-you.
Paul
Follow me on Twitter
#DataExchange#IBMSterlingTransformationExtender#IBM-Websphere-Transformation-Extender