Mailing using JCL by extracting data from a VSAM file.

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
nivedita
Member
Posts: 5
Joined: Tue Apr 28, 2009 4:48 pm

Mailing using JCL by extracting data from a VSAM file.

Post by nivedita » Tue Apr 28, 2009 4:55 pm

Hi,
There's a requirement where i need to send Email using JCL Code by extracting the data(like: HI ho r u???...) from a VSAM file . I have written a code as follows. Its showing MAXCC = 0 but not sending any mail. Can any of you please look into it ASAP and mail me with regard to it please.

//G107529J JOB RMFCH,,NOTIFY=&SYSUID,CLASS=B,MSGLEVEL=(1,1),MSGCLASS=X
//STEP2 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUT1 DD *
DD DSN=G107529.JCL.PGM,DISP=SHR
HELO 192.168.100.74
MAIL FROM :<NIVEDITA_MISHRA@INFOSYS.COM>
RCPT TO:<NIVEDITA_MISHRA@INFOSYS.COM>
DATA
FROM:<NIVEDITA_MISHRA@INFOSYS.COM>
TO:<NIVEDITA_MISHRA@INFOSYS.COM>
SUBJECT: MAILED FROM MOCHA CLIENT
/*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSIN DD DUMMY
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
REPRO-
IDS(G107529.VSAM.KSDS2)-
ODS(G107529.JCL.PGM)
/*


Thanks in Advance,
Nivedita

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Tue Apr 28, 2009 5:29 pm

Natarajan
Chennai

nivedita
Member
Posts: 5
Joined: Tue Apr 28, 2009 4:48 pm

Need to Preapre a TOOL for the same.

Post by nivedita » Fri May 08, 2009 7:30 am

Hi Natarajan,

Thanks for sharing the link. I got the o/p for it. :)
Now I need to prepare a tool for the same.
Can you please help me regarding this because i have never prepared a tool as such, i would be greatful if you can tell me how to approach it with complete explanations.


Thanks in advance,
Nivedita

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Re: Need to Preapre a TOOL for the same.

Post by Natarajan » Fri May 08, 2009 10:13 am

You are welcome.
nivedita wrote:Now I need to prepare a tool for the same.
what tool you want to create.. can you give more details?
Natarajan
Chennai

nivedita
Member
Posts: 5
Joined: Tue Apr 28, 2009 4:48 pm

Post by nivedita » Mon May 11, 2009 2:53 pm

Thanks...
I have used VB script and prepared the tool.


Thanks,
Nivedita

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others