Joe,
Are you talking about MSH-10 the Control ID or the sequence number field?
I know with the Control ID some systems require the ID to never repeat in other cases they do not care as long as there is some large number before it repeats.
If repetition is not an issue, you can use Tcl to exploit a Counter File which will keep incrementing until it reaches the limit you set.
If it is the sequence number, then there are potential issues with whether the number needs to different (or not) if a message is resent also whether there can be ‘gaps’ in the number (such as a message getting killed on the outbound TPS then the sequence # might skip one or more numbers).
Just some things to think about.
Jim Kosloskey
email: jim.kosloskey@jim-kosloskey.com 30+ years Cloverleaf, 61 years IT – old fart.