Not sure if DFSORT can handle this or not. I have a 100 BYTE flat file that looks like this:
DOC XXXXXX INDEX
INFO
INFO
DOC XXXXXX INDEX
INFO
INFO
DOC ABCDEF INDEX
INFO
INFO
DOC XYZ INDEZ
INFO
I want to output a file that only contains the variable located in between 'DOC' and 'INDEX'. However, that variable can be anywhere from 3-8 bytes in length. What would the SORT CARD look like? I would want to SORT by this variable too so this is what I imagine the output file looking like:
ABCDEF
XXXXXX
XXXXXX
XYZ
Thanks