Hi,
I have a variable length input file
Some records can have blank at end of record
Input
ABCDEFGH.........
WXYZ..............
123456..........
9876-1234-5555-88
Dots indicate blanks
I need to shorten every record with blanks
The new record length would be equal to the last non-blank character position +4
Output
ABCDEFGH
WXYZ
123456
9876-1234-5555-88
Is it possible with DFSORT/ICETOOL?