There are two types of Message Handlers in DataStage.
Project Level Message Handlers: These are installed in an application directory per Engine and and aren't supported by MettleCI so should be migrated manually.
Job Level Message Handlers: There is MettleCI functionality to support their deployment only. While MettleCI deploys Job Level Message Handler files from a Project's Git repository, it doesn't offer native check-in and deletion functions for them so they must be managed via command line Git.
The following observations about Message Handlers, based on field experience, lead us to suggest switching away from using them.
Message Handlers are not DataStage assets
Message Handlers are not an asset of DataStage. IBM documentation notes that they cannot be managed the same way as jobs, sequences, parameter set definitions, etc., are managed. They cannot be placed in an ISX export of their own, they have to be associated with a job.
"You can use the IBM® InfoSphere® Information Server Manager (the deployment tool) to move, deploy, and control your IBM InfoSphere DataStage® and QualityStage® assets."
However, message handlers cannot be managed individually using the IS Manager or istool command line tool.
Therefore MettleCI does not handle them in the conventional way. Project level Message Handlers are not handled at all. and and special provisions must be made for Job level Message Handlers. They have to have names corresponding to the job, they have to be kept in a specific place, and there is a step required to “inject” them into the job’s ISX file before they can be deployed to a target environment. These considerations mean extra work during all migrations and deployments.
Message Handlers may disguise poor development practices
High-performing DataStage development teams rightly view message handlers as something that disguises poor coding or job design decisions. They are most often found in organizations that mandate that Jobs should run without warnings but with little else to encourage their developers to remediate the root cause. As a result, Jobs are often set to Abort (e.g. via an After Routine) if they generate warning messages. Unfortunately, this often leads to developers - especially those under pressure - applying message handlers to quickly get compliant and move on.
Message Handlers are subject to regression
As previously highlighted, the very nature of IBM’s tools for managing Job Level Message Handlers in Information Server means any automation solution for them will be at risk of permanent regression with future IBM Fix Packs and Releases. Since they are not “assets”, they may be regarded as “second class citizens” when breaking changes are introduced.
Conclusion
In view of the above drawbacks, organizations should refrain from using Message Handlers (by refactoring jobs to not produce warnings or errors) and should configure their Job Schedulers to be able to allow Warnings in exceptional circumstances. That way, high standards of development are generally maintained but in the unlikely situation that there is no alternative, Job Warnings can be allowed.
Even in the absence of automation challenges, we suggest the general situation with Job Level Message Handlers ought to trigger customers to reconsider their use (or at least modify the tolerance of Warning Messages by dependent systems) and refactor accordingly. This can be done over time but should be planned for and carried out as soon as practical.