Page 1 of 1

Question of expanding a dataset in an EMAIl step in JCL

PostPosted: Sat Oct 10, 2009 1:34 am
by Gururao78
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'
//*--------------------------------------------------------------

Re: Question of expanding a dataset in an EMAIl step in JCL

PostPosted: Sat Oct 10, 2009 1:45 am
by dick scherrer
Hello,

I want the content of he dataset which hosts the result to be expanded automatically
What does "expanded automatically" mean?

What happens now? What would you rather have happen?

Re: Question of expanding a dataset in an EMAIl step in JCL

PostPosted: Sat Oct 10, 2009 2:08 am
by Gururao78
I need the Data present in the dataset BEXD.DEXT0.V.LNI.SORTDAT3 to be expanded when the mail is ent by the JCL to my inbox.

Re: Question of expanding a dataset in an EMAIl step in JCL

PostPosted: Sat Oct 10, 2009 2:23 am
by dick scherrer
Hello,

Try this:
//SYSUT1 DD *
TO: xyz@email.com
FROM: OSI Test System
SUBJECT: Received New BOR01 File

/*
//     DD DSN=BEXD.DEXT0.V.LNI.SORTDAT3,DISP=SHR
//     DD *

</END/>
/*
Make sure the dataset is fb and lrecl 80. . .

Re: Question of expanding a dataset in an EMAIl step in JCL

PostPosted: Sat Oct 10, 2009 9:48 pm
by Gururao78
Thanks a lot , the above solutions works.

Re: Question of expanding a dataset in an EMAIl step in JCL

PostPosted: Sun Oct 11, 2009 3:30 am
by dick scherrer
Good to hear it works - thanks for letting us know :)

d