Skip to Content
Former Member
Jun 29, 2009 at 08:17 PM

How to process TDLINE into multiple lines without word cut off



I have a requirement to read the TDLINE with READ_TEXT FM and have to built a flat file of 60 character length of each record without the word to be cut off in the middle.

If my string in one TDLINE is less than 60 character then the entire string will become one line in flat file.

If the string in TDLINE is more than 60 characters, then I have to split the entire string in that row into multiple rows in the flat file, but the restriction is no word should cut off in the middle.

It would be appreciated if anyone help me for this solution.