Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Email the latest version of the dataset that is created

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
chitramayi

New User


Joined: 12 Mar 2006
Posts: 3
Location: Hartford,Connecticut

PostPosted: Fri Apr 14, 2006 7:40 am    Post subject: Email the latest version of the dataset that is created
Reply with quote

My reqt is to send an email with the name of the latest version of a dataset that is being created after successful end of a job. I already have the JCL to send an email at the end of the job but not with the dataset that is created. Any clues?
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Apr 14, 2006 7:53 am    Post subject: Re: Email the latest version of the dataset that is created
Reply with quote

If you are asking how to find the dataset name, look at these previous posts:

http://ibmmainframes.com/viewtopic.php?t=6604&highlight=jfcb
http://ibmmainframes.com/viewtopic.php?t=8828&highlight=jfcb
http://ibmmainframes.com/viewtopic.php?t=5235&highlight=listdsi
Back to top
View user's profile Send private message
chitramayi

New User


Joined: 12 Mar 2006
Posts: 3
Location: Hartford,Connecticut

PostPosted: Fri Apr 14, 2006 8:10 am    Post subject:
Reply with quote

I am looking for some ways to mail the latest version of the dataset that is being created by using the SMTPNOTE mail concept. Below is the model of the JCL that i am using. What should i include in the body section in order to mail the latest version of the dataset..?

//SENDNOTE EXEC PGM=IEBGENER
//SYSIN DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSUT2 DD SYSOUT=(B,SMTP)
//SYSUT1 DD *
helo MVSHOST
mail from:<MVSUser@MVSHost.xyz.com>
rcpt to:<unixuser@pop3.xyz.com>
data
From: MVSUser@MVSHost.xyz.com
To: unixuser@pop3.xyz.com
Subject: Test message from MVS using SMTP

This is a line in the body of the note.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 239
Location: Cincinnati OH USA

PostPosted: Fri Apr 14, 2006 10:39 pm    Post subject:
Reply with quote

which is it - the name or the data?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sat Apr 15, 2006 8:03 am    Post subject: Re: Email the latest version of the dataset that is created
Reply with quote

I hope it's not the actual dataset content. Hopefully, the company that chitramayi works for wouldn't allow such an obvious potential data security breach to occur.
Back to top
View user's profile Send private message
chitramayi

New User


Joined: 12 Mar 2006
Posts: 3
Location: Hartford,Connecticut

PostPosted: Sat Apr 15, 2006 8:15 am    Post subject: Re: Email the latest version of the dataset that is created
Reply with quote

Yes Superk is correct. I am not trying to mail the contents of the dataset. I need to mail the name or latest version of the dataset that is being created at the successful end of a job.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts COBOL Version 6.1 Virendra Shambharkar COBOL Programming 5 Tue Nov 01, 2016 11:24 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Reading data from PS file and send it... rajatbagga All Other Mainframe Topics 18 Fri Sep 23, 2016 12:51 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us