I would like to search for a string from one file and copy the next strings into another file. The string would be available anywhere in line between column 01 and 80.
Sample Input file -
sdjkghsioiojkljsd#89 kljsflkjklsfjlkjkljfs
Kl;fyhkl;hdf#104 lkujsdfjklhjkhsfkjlhfjk
Opietopiopujtrtioutriort#7895 klj;hhdf
jkdfhljklhsdfjklsdfjksdfkljkljhjkhdfjklhfd
Expected Output file -
89
104
7895
104
7895
I found a way to search and copy the record using the INCLUDE statement.
INCLUDE COND=(1,80,SS,EQ,C'#')
However, the requirement is just to copy the next strings until space, but NOT the complete record into output file as shown below.
Code'd