OnDemand User Group

Support Forums => MP Server => Topic started by: jsquizz on January 10, 2023, 07:46:49 AM

Title: Sample Post Processor - Email when a file loads
Post by: jsquizz on January 10, 2023, 07:46:49 AM
Hi all.

We got a request for when a file loads - to drop an email.

In the past this is simple, since we use shell scripts to dual load. Since we use to Z/OS - We don't dual load.. We use daemons.

We also have limited access to "arslog" since it runs on our Z/Os box- and that'd require getting our mainframe folks - Which is--needless to say, difficult.

Does anyone have a suggestion as to a post processor script - That I can create/execute at the application level that basically will dispatch an email and say - Hey! This file loaded.

Even if its something simple-

Code: [Select]
#!/usr/bin/bash

mailx -something blah blah File.ARD - loaded

Thanks!
Title: Re: Sample Post Processor - Email when a file loads
Post by: Justin Derrick on January 10, 2023, 08:05:15 AM
Two options that I can see...

A wrapper around arsload that checks the output for successful load message numbers, or arslog. 

-JD.
Title: Re: Sample Post Processor - Email when a file loads
Post by: rjrussel on January 16, 2023, 06:01:03 PM
You could also use ODFProcessDist exit.

https://www.ibm.com/docs/en/cmofm/10.5.0?topic=facility-odf-user-exits