Question of expanding a dataset in an EMAIl step in JCL



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Question of expanding a dataset in an EMAIl step in JCL

Postby Gururao78 » Sat Oct 10, 2009 1:34 am

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'
//*--------------------------------------------------------------
Gururao78
 
Posts: 9
Joined: Mon Sep 28, 2009 5:09 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sat Oct 10, 2009 1:45 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Gururao78 » Sat Oct 10, 2009 2:08 am

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.
Gururao78
 
Posts: 9
Joined: Mon Sep 28, 2009 5:09 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sat Oct 10, 2009 2:23 am

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. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

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

Postby Gururao78 » Sat Oct 10, 2009 9:48 pm

Thanks a lot , the above solutions works.
Gururao78
 
Posts: 9
Joined: Mon Sep 28, 2009 5:09 am
Has thanked: 0 time
Been thanked: 0 time

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

Postby dick scherrer » Sun Oct 11, 2009 3:30 am

Good to hear it works - thanks for letting us know :)

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post