I have a WIN job that runs some powershell code and returns the following in the report that I want to include in the body of an email notification.
File Name: E:\shares\CSIportal\UL\AgVStatements20190506.TXT
Record Count: 1
Line Count: 46
Date Created: 05/07/2019 14:40:28
Date Modified: 05/06/2019 22:50:10
File Size: 1070
I thought the following code would return the whole report if I put the variable in the body of the message but all I got was the last line of the report. Is there a way to include the whole report in the body of the message?
:SET &RUNID# = 1327133
:SET &H_REPORT# = PREP_PROCESS_REPORT(,&RUNID#, "REP")
:PROCESS &H_REPORT#
: SET &R_FILE# = GET_PROCESS_LINE(&H_REPORT#)
:ENDPROCESS