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

SMTP the current generation number of a GDG.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jyothi Kulunde

New User


Joined: 14 Feb 2017
Posts: 2
Location: India

PostPosted: Thu May 04, 2017 4:08 pm
Reply with quote

I want to send an email which notifies the current generation number of a GDG.

Scenario:
We receive C.P.FD1234.PROF(0) files thru NDM. We use these generations as input in our job. Every time we run a generation we make a note of it and share with the team so that we don't duplicate the run with the same file.
So to automate this task I want to trigger an email to notify which generation of the file is run.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu May 04, 2017 5:06 pm
Reply with quote

Well, that is nice to know. But, presumaby you have a problem - what is it?
Back to top
View user's profile Send private message
Jyothi Kulunde

New User


Joined: 14 Feb 2017
Posts: 2
Location: India

PostPosted: Thu May 04, 2017 6:25 pm
Reply with quote

We are running multiple generations(2 to 3) during IST time and some more generations are run during EST time. We are now manually sharing the generations which we ran.
But sometimes we miss to share this information during end of the day. In this case we have to manually check which generations are run by referring to the job which has ran using these generations.

Now I am thinking to bypass this manual process by auto triggering an email about the file which has run.

I am not sure how SMTP works in dynamically picking up the current generation number.
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu May 04, 2017 6:43 pm
Reply with quote

Quote:
I am not sure how SMTP works in dynamically picking up the current generation number.

It doesn't - you have to write a little program that will extract the information that you want and write to the smtp-enabled sysout class.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3051
Location: NYC,USA

PostPosted: Thu May 04, 2017 8:34 pm
Reply with quote

See if these links helps to achieve your proposal.
ibmmainframes.com/about44245.html
ibmmainframes.com/about50967.html
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 Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts Increase the number of columns in the... IBM Tools 3
Search our Forums:

Back to Top