AnsweredAssumed Answered

How do I code prep process report to stop sending 4 email for the results.

Question asked by Christopher_Poullard_6587 on Sep 9, 2016
Latest reply on Sep 9, 2016 by Christine_Chavez_6412

Here is the code I have so far.  Every time I run the job it sends 4 different email for each line.  How can I combine the lines to get one email for all for line.

:SET &MISSED# = PREP_PROCESS_REPORT(,,,"*failed*")
:SET &EMAILBODY# = ""
:SET &CRLF# = UC_CRLF()
:SET &MSG1 = "Do not reply this is an unattened email."
:PROCESS &MISSED#
:  SET &LINE# = GET_PROCESS_LINE(&MISSED#)
:  PRINT &LINE#
:  SET &EMAILBODY# = STR_CAT(&EMAILBODY#, "&LINE#&CRLF#")
:  SET &OUT# = SEND_MAIL('christopher.poullard@vizientinc.com',,'Backup Failure','&MSG1 &CRLF# &EMAILBODY#')

 

Outcomes