The solution to my problem would appear to be in the post processor, specifically the FIL file.
I have a pretty good understanding of how this file works, but it seems that you can only read and manipulate one command line at a time. What I need to do is look for this pattern in the output;
PIERCE / OFF
PIERCE / ON, CONST
And ignore it.
Logically it needs to look like this;
If (CODE) == PIERCE / OFF
AND next line ==
PIERCE / ON, CONST
Then Output (null)
ELSE
CIMFIL/ON,PIERCE
T4TH=POSTF(7,4)
CASE/T4TH
WHEN/ICODEF(ON)
INSERT/'M58$'
WHEN/ICODEF(OFF)
INSERT/'M59$'
ENDCAS
CIMFIL/OFF
But I am not seeing how to do this with the capabilities of the FIL.
Anyone can help?