Thanks Rob! Is there a way to use a numeric variable? My problem is that Cloverleaf 6.0 won’t let me do a substring search of PID.18. I’m guessing because it’s numeric.
If you are on CL 6.0 or later, look at the STRING Action Substr Function. That would allow you to pull out the characters you want by position and place them in a Temp Variable.
You can then use an IF Action against the temp variable.
If you are on an earlier release, you will need to use Tcl. I have a proc that does that. If you want that email me but if you can use the STRING Action, I would advise that.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.