Author Topic: Sample Post Processor - Email when a file loads  (Read 498 times)

jsquizz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 576
    • View Profile
Sample Post Processor - Email when a file loads
« 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!
#CMOD #DB2 #AFP2PDF #TSM #AIX #RHEL #AWS #AZURE #GCP #EVERYTHING

Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2229
  • CMOD Guru for hire...
    • View Profile
    • Tenacious Consulting
Re: Sample Post Processor - Email when a file loads
« Reply #1 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.
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

rjrussel

  • Full Member
  • ***
  • Posts: 141
    • View Profile
Re: Sample Post Processor - Email when a file loads
« Reply #2 on: January 16, 2023, 06:01:03 PM »