Hi
@Douglas Miller,
Thank you for the reply. In this case I am not using Sysview online so I'm not sure how I can populate the "panel" fields.
Let me explain what I am trying to do. We use MVS THRESH to set thresholds for the CA Datacom MUF region's zIIP CPU% (JOBIIPT%). When the threshold is triggered an IMOD is called that checks...
1. Whether the trigger was "upward" (from NORMAL to WARNING/PROBLEM, or if it is still in a PROBLEM state).
2. Issue TASKMON to check various criteria about JOBCPU and individual modules/offsets contribution to the high zIIP usage.
If the 1+2 above determine that there is data of interest then we want to send an email that contains:
1. The full TASKMON output from (2) above)
2. DCTASKS output (+ any other snapshot data that we choose to add to this IMOD - this will evolve over time).
As a result the BODY of the email is going to be variable. I looked at the TEMPLATEs that CA Sysview supplies but they all seem to be a fixed-length/format body. The email contents will be variable in our case, so I could not see how to do it.
The online SENDMAIL function evidently picks up the text from the panel somehow. The SENDMAIL command syntax allows specification of the other email components, but I can't see how to pass it the many text lines that will make up the body of the email.
Similarly I looked at EMAILTO but that cannot be executed from an IMOD.
Your advise would be greatly appreciated.
Cheers,
Owen
------------------------------
Technical Consultant
Dixons Carphone
------------------------------
Original Message:
Sent: 11-21-2019 08:55 AM
From: Douglas Miller
Subject: SENDMAIL data for email body
Owen,
Try using the SYSVIEW TYPE command after you've issued SENDMAIL to put data in specified locations on the panel.
I'm not sure what you're trying to accomplish, but if it is related to sending an email notification from a threshold triggering you may want to review the method we provide to do this using our Event Capture feature. On the TOPICS display you'll find 'Email notifications on exceptions or thresholds' that walks you through it. Following that process you can also see an example of how to use a TEMPLATE for the SENDMAIL command, even if you don't have the Event Capture option.
Regards,
Doug
------------------------------
Regards,
Doug Miller
Software Engineer
Broadcom
Original Message:
Sent: 11-14-2019 12:08 PM
From: Owen Williams
Subject: SENDMAIL data for email body
The Sysview SENDMAIL command panel allows text data to be typed (or pasted) that will form the BODY of the email sent.
I see the command syntax allows a LINES parameter to specify how many lines are to be included in the email body, but I cannot see how to specify that text data when invoking SENDMAIL from an IMOD. (I tried defining stem variables "Message", "Line" and "Lines" but none passed the BODY to SENDMAIL, so only the subject and footer were received). I must have missed something obvious but I just can't find the answer, despite searching. Please can someone enlighten me?
------------------------------
Technical Consultant
Dixons Carphone
------------------------------