Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RSNASTED not process message

adrian_mejido
Contributor
0 Kudos

I have a message class which is processed by RSNASTED. I would like to do some validations and if a validation is not passed I would'nt like to process the message. Instead of that, the message should be in status "Ready" (NAST-VSTAT = '0').

How I could achive that?

Best Regards and thanks for your time.

1 REPLY 1

Jelena
Active Contributor
0 Kudos

There are output requirement routines that can be used to avoid the output being proposed. In this case you won't get any NAST record, so nothing to process.

Other validations can be done in the output program, naturally. But normally if a validation no passed then the error status would be set and log updated with the error text. The message then can be repeated after the errors were addressed. I guess if you create a custom output program you can do whatever you want in it. But wouldn't it be very confusing to the users when the message is not processed yet there is no error message? How would anyone be able to tell a message that was not touched from the message that didn't pass a validation? You might want to think this through.