IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Email the latest version of the dataset that is created


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Fri Apr 14, 2006 7:53 am
Reply with quote

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

ibmmainframes.com/viewtopic.php?t=6604&highlight=jfcb
ibmmainframes.com/viewtopic.php?t=8828&highlight=jfcb
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
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: 419
Location: Inside the SPEW (Southwest Ohio, USA)

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

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

Global Moderator


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

PostPosted: Sat Apr 15, 2006 8:03 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top