A JCL PROC (RETCDCHK) was added to some JOBs to identify if any of JOB/PROC steps of those JOBs produce un-acceptable RC.
According to RC produced by PROC (RETCDCHK) it worked fine, but I'm not getting why MEMO wasn't sent, even though the mail content was produced.
When one of JOB/PROC steps of JOBs produced un-acceptable RC, RC of RETCDCHK were as below
RETCDCHK ACTRCHKX FLUSH
RETCDCHK MAILSTP 00
RETCDCHK MAILSTPX FLUSH
ACTRCHK -> Executes PGM=IKJEFT1A to run a REXX program (AB@RCHKS) which writes output to temporary file TEMP1 [This does the maximum work and stores the RC details in required format in TEMP1 file]
ACTRCHKX -> Conditionally executed if RC of ACTRCHK is not in ('0', '1'), this step force fails the JOB using PGM=UTKT [This step is to suppress JOB incase of first step failure]
MAILSTP -> Conditionally executed if RC of ACTRCHK is 0 (Send MEMO (Output of REXX program) only on successful execution of first step using PGM=ICEGENER and SMTP)
MAILSTPX -> Conditionally executed if RC of MAILSTP is not equal to '0', this step force fails the JOB using PGM=UTKT
As per table1, a MEMO has been generated and sent out but none received it...(!!!) I can see the HTML mail content in the SYSUT2 of MAILSTP in spool.
I found the message "IKJ56644I NO VALID TSO USERID, DEFAULT USER ATTRIBUTES USED" in the beginning of SYSUT2 of MAILSTP...
Could this failure be because of above mentioned message or anything else ?