I have an input file of 80 bytes length. Position 9 contains a binary field of 4 digits.
I want to extract records from this binary field (ie 9,4,BI), and write the outputs to 5 different files.
Condition is that, all the records ending with 1 from this binary field should go to file 1, all the records ending with 2 should go to file 2 and so on...
For eg:, if the binary field contains a value 12345, that record should go to FILE 5 (as the last digit of "12345" is 5)
Can you help me write a sort card for this