Hello all...
I have a question that might be pretty simple. I have a fixed-length file that has 30 bytes per record. The 30th byte is a flag with a value of 'Y' or 'N'. This would be extremely easy is this was in a relation database, but since it isn't, I was wondering if anyone had any ideas of how I could write out, into a new file, just the records where that 30th byte = 'Y'. So, if my file looks like this:
12345678901234567890123456789Y
12345678901234567890123456789N
12345678901234567890123456789Y
12345678901234567890123456789N
I want output like this:
12345678901234567890123456789Y
12345678901234567890123456789Y
I just want to create a new file that contains only the first and third record (where 30th byte = 'Y'), you know?
Any help would be greatly, greatly appreciated. Thanks!
I have a question that might be pretty simple. I have a fixed-length file that has 30 bytes per record. The 30th byte is a flag with a value of 'Y' or 'N'. This would be extremely easy is this was in a relation database, but since it isn't, I was wondering if anyone had any ideas of how I could write out, into a new file, just the records where that 30th byte = 'Y'. So, if my file looks like this:
12345678901234567890123456789Y
12345678901234567890123456789N
12345678901234567890123456789Y
12345678901234567890123456789N
I want output like this:
12345678901234567890123456789Y
12345678901234567890123456789Y
I just want to create a new file that contains only the first and third record (where 30th byte = 'Y'), you know?
Any help would be greatly, greatly appreciated. Thanks!