Please help me understand what '1,6' means in "TRAILER3=(1,6
TRAILER3=(1,6 - each item value in positions 1-6 will appear in the output record in positions 1-6. So 'ITEM_A' will appear in the first record, 'ITEM_B' will appear in the second record and 'ITEM_C' will appear in the third record, which is what you asked for.
As per my understanding , 11 position of trailor will have total of field values at position 12 and length 2.
For each item (e.g. 'ITEM_A', 'ITEM_B' and 'ITEM_C'), the total of the numeric values in 12-13 for that item will appear in output positions 11-12.
Please suggest how can I print a fields as such. For e.g. How can I print ITEM in trailor.
I don't understand what you're asking. Each item (e.g. 'ITEM_A') will appear in an output record because we specified 1,6 in TRAILER3.