You will be able to find these in the Agents installation folders (SYSOUT) if that is an option for you.
1 of 1 people found this helpful
CTM doesn't store job outputs on the database, but at the agent filesystem. There's a new solution that may attend to your needs: Control-M Archiving, which manage job outputs and provide historical data about them.
Take a look at https://www.youtube.com/watch?v=-zF4yDYE8xs.
use a script and place it in the agent home directory somewhere and then invoke it in the Post-execution Command in the General Form of the job.
example script name is script.py and written in Python to email the output
$CONTROLM/script.py $CONTROLM/somewhere/sysout/%%ORDERID._%%RUNCOUNT %%EMAIL %%JOBNAME %%EMAILFROM
from email.mime.text import MIMEText
SysOutFile = sys.argv
msgTo = sys.argv
jobname = sys.argv
msgFrom = sys.argv
sysdir = os.path.dirname(SysOutFile)
sysfiles = os.path.basename(SysOutFile)
sysfiles = sysfiles.upper()
SysOutFile = sysdir + '/' + sysfiles
f = open(SysOutFile,'r')
lines = f.readlines()
textf = str(lines)
msg = MIMEText(textf)
msg['Subject'] = "Output of: " + jobname
s = smtplib.SMTP('localhost')
s.sendmail(msgFrom, msgTo.split(','), msg.as_string())