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#')