Selective printing based on matched record

can you please explain the code in RED

I tweaked your code a bit

awk -v A=5 '/^0[67][MV].{22}003529/{c=A+1}c-->0'

and it is running fine in AIX, but why is it not running on Linux. Both OS has GNU version of awk