I have records as shown below:
000509603019444 0 000509603019444 000150000810005 1 L
000509603020807 0 000509603019444 000150000810005 1
000509603017979 0 000509603019460 000150000810005 1 L
000509603018361 0 000509603019460 000150000810005 1
000509603019460 0 000509603019460 000150000810005 1 L
000509603019473 0 000509603019473 000150000810005 1 L
000509603050264 0 000509603019473 000150000810005 1
000509603017244 0 000509603019487 000150000810005 1 L
000509603018105 0 000509603019487 000150000810005 1
000509603019487 0 000509603019487 000150000810005 1 L
000509603021889 0 000509603019487 000150000810005 1 L
000506874008000 0 000406474008000 000150000800000 1 L
000509603020807 0 000509603019444 000150000810005 1
000509603017979 0 000509603019460 000150000810005 1 L
000509603018361 0 000509603019460 000150000810005 1
000509603019460 0 000509603019460 000150000810005 1 L
000509603019473 0 000509603019473 000150000810005 1 L
000509603050264 0 000509603019473 000150000810005 1
000509603017244 0 000509603019487 000150000810005 1 L
000509603018105 0 000509603019487 000150000810005 1
000509603019487 0 000509603019487 000150000810005 1 L
000509603021889 0 000509603019487 000150000810005 1 L
000506874008000 0 000406474008000 000150000800000 1 L
My driving field starts at position 19 and of length 15.
My output need to have the records when position 65 is SPACES. Only problem is the last record as shown here.My input file can have few records like this,where there will be only 1 record with postion 65 not SPACES and in such scenario I need to get those records.When there are multiple records for my driving field I can easily sort out unwanted records by checking = or not =SPACES,but if there is only one record exist for the driving field then I need to fetch that in my output irrespective of position 65 =SPACES or not=SPACES.
I guess my question is clear.I am not confusing.
Thanks,
AK