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:<[email protected]>
rcpt to:<[email protected]>
data
From: [email protected]
To: [email protected]
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: 421
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Free space of a mulitvolume PS datase... TSO/ISPF 7
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Avoid job abend on dataset held by us... JCL & VSAM 6
No new posts Identify Number of Multivolume Dataset All Other Mainframe Topics 5
No new posts batch SFTP job using AOPBATCH unable ... All Other Mainframe Topics 7
Search our Forums:


Back to Top