I think your IF is wrong.
Try using an equal sign followed by a space for space (like this sans parentheses (= )).
However, if you want to SUPPRESS if PID-4 is equal to spaces then
– the SUPRESS should be subordinate to the IF.
– to be most efficient you should probably put all of the other activity under the else – like this:
IF PID-4 eq =
SUPPRESS
ELSE
COPY
COPY
COPY
… etc.
Also is it all of PID-4 that can be spaces for you to SUPPRESS the message or is it just one component? Is it just one space or could there be more than one space (checking against (= ) only checks for a single space)? If it can be more than one space but you don’t know how many then you will need some tcl to check for all spaces. The same is true if it can be one or more spaces.
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 60 years IT – old fart.