In a file with multiple occurrences of the above, is there a way to output only the blocks (H, A, B, C and T) that correspond to a record type A having a value of "1". In the example above, the following should be output -
H123
A1
B2
C3
T
since it has a "1" next to record type A. The second block has "2" next to type "A".
Giving the answer as a working code with not a single comment or explanation of the approach, - it is the best way to get tomorrow a new question from the same TS regarding his new daily task.
You're looking at a free lunch, boys.
Free meal is tempting...
Joined: 15 Aug 2015 Posts: 1337 Location: Bamberg, Germany
I could have written that the same questions have been asked a couple of times in the past. Besides that, the question was asked without code tags and proper formatting. Basically it should have been ignored at all.
On a different note, isn't there a way to reply to the person on this forum, similar to slack? Saves the need to copy paste the name of the individual.