community!
I 've got an interesting question. I write a small jcl, which xmit file to another email. XMIT Is it possible to add some information to email, such as subj?
Yes, but exactly how will depend upon your system e.g. here is an email job from my previous company:
//jobname JOB (acct_no),'EMAIL',
// MSGCLASS=X,
// NOTIFY=&SYSUID
//*
//********************************************************************
//* *
//* EMAIL STEP *
//* ADDRDD KEEPS DISTRIBUTION LIST *
//* MESSGDD KEEPS EMAIL TEXT *
//* ATTACHDD KEEPS ATTACHMENT FILE *
//* *
//********************************************************************
//EMAIL EXEC PGM=IKJEFT1B
//SYSEXEC DD DISP=SHR,DSN=SYS1.TCPIP.SMTP.CEXEC
//SYSPRINT DD SYSOUT=*
//ADDRDD DD *
To someone@somedomain.com
//MESSGDD DD *
Here is the text of my email.
Here is some more text.
//ATTACHDD DD DISP=SHR,DSN=my.attached.dataset
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
%XMITIP * +
SUBJECT 'My email subject' +
ADDRESSFILEDD ADDRDD +
MSGDD MESSGDD +
FILEDD ATTACHDD