A file may have only trailer record or records with header, detail & trailer record on some day
Input file data:
00ABCDEFG0999XYZ
When its with header and other data
00ABCDEFG0000XYZ XHIOXOIXHOXHOXHXOHOXH
00ABCDEFG0999XYZ
00ABCDEFG0999XYZ
Input file length: 80
I need to check if data at a position 3,11,CH,EQ,C'ABCDEFG0999' and when count is only 1, then reformat the input record and add a header to it otherwise no action required
How can I achieve this by ICETOOL.