OnDemand Users Group

Support Forums => CMOD for Multiplatforms => Topic started by: jsquizz on January 10, 2023, 02:46:49 PM

Title: Sample Post Processor - Email when a file loads
Post by: jsquizz on January 10, 2023, 02:46:49 PM
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-

#!/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, 03:05:15 PM
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 17, 2023, 01:01:03 AM
You could also use ODFProcessDist exit.

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