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: 241
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 EMAIL using IEBGENER - SMTP parasmalik20 JCL & VSAM 4 Tue May 23, 2017 12:19 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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