ThomasKelly613226,
You could
1) use something like this to add a copy of the report directly in the mail's body:
:SET &REPORT# = ""
:SET &HND# = PREP_PROCESS_REPORT(,&$RUNID#,"REP")
:PROCESS &HND#
:SET &LINE# = GET_PROCESS_LINE(&HND#)
:SET &REPORT# = STR_CAT(&REPORT#,&LINE#)
:ENDPROCESS
:SET &SEND# = SEND_MAIL("<your email address>",,"job report",&REPORT#)
2) Save the report locally on the agent,
then add the report as an attachment with SEND_MAIL:
:SET &REPORT# = RUNNR2ALPHA(&$RUNID#)
:SET &REPORT# = "O&REPORT#.txt"
:SET &SEND# = SEND_MAIL("
<your email address>",,"Report","Here is the report","<agent's temp folder>\&REPORT#")
HOWEVER I would not recommend using one of these solutions. 1) Will greatly increase the task's processing time and 2) will require some disk space monitoring on the agent's side.
Editing objects to add a notification object to each one of them does sound like a very time-consuming process, however it probably is the best approach to preserve the system's performance.
Just my 2 cents...
Best regards,
Antoine