This CARLa program relies on JCL parameters to specify how JES2 is going to set up the spool data set for C2REMAIL. Otherwise, the data set just sits in spool, as it does in your case. An email data set in spool has to be processed by the CSSMTP started task that (has to) run(s) somewhere in your JES2 network. Typically, you would see JCL that sets the WRITERID to CSSMTP using
//C2REMAIL DD SYSOUT=(B,CSSMTP)
or
//C2REMAIL DD SYSOUT=(B,CSSMTP),DEST=JES2MAIN.CSSMTP
Alternatively, you can specify where CSSMTP lives with a CARLa command
OPTION SMTPCLASS=B SMTPNJENODE=JES2MAIN SMTPWRITER=CSSMTP
or, if you have CSSMTP running on substantially all JES2 nodes:
OPTION SMTPCLASS=B SMTPWRITER=CSSMTP
Some installations use the old WRITERID SMTP instead of CSSMTP, and another CLASS value instead of B. Non-English languages may require use of SMTPATSIGN to match the value specified in the CSSMTP configuration.
See:
ExtWrtName statement and
Options statement
------------------------------
Rob van Hoboken
------------------------------