I have created a JCL which is used to send mail to my inbox with the result of some proecessing.
The result is stored in a dataset BEXD.DEXT0.V.LNI.SORTDAT3
I want the content of he dataset which hosts the result to be expanded automatically when it sends a mail. is it possible.
My Jcls Steps looks like below:
-----------------------------------------------------------------------
//JSTEP020 EXEC PGM=SYNCGENR
//ABENDAID DD SYSOUT=X,HOLD=YES
//SYSABEND DD SYSOUT=X,HOLD=YES
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
TO: xyz@email.com
FROM: OSI Test System
SUBJECT: Received New BOR01 File
BEXD.DEXT0.V.LNI.SORTDAT3.
</END/>
/*
//SYSUT2 DD DSN=OSID.TEST.MAIL.EMAILMVS,
// DISP=(NEW,CATLG,DELETE),
// SPACE=(TRK,(1,1),RLSE),
// DCB=(LRECL=80,RECFM=FB)
//SYSIN DD DUMMY
//*--------------------------------------------------------------
//* EXECUTE EMAIL UTILITY. USE NOTES:
//*
//* 1. CASE MATTERS IN THE PARM!!!
//*--------------------------------------------------------------
//JSTEP030 EXEC PGM=BPXBATCH,
// PARM='PGM /usr/local/bin/mvsmail OSID.TEST.MAIL.EMAILMVS'
//ABENDAID DD SYSOUT=X,HOLD=YES
//SYSABEND DD SYSOUT=X,HOLD=YES
//SYSPRINT DD SYSOUT=*
//STDIN DD PATH='/dev/null'
//*--------------------------------------------------------------