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

Need help on XMITIP


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saravanans4

New User


Joined: 01 Sep 2003
Posts: 26

PostPosted: Tue Apr 19, 2011 6:21 pm
Reply with quote

I have a requirement:
I have 3 files: File-1, File-2 and File-3.
The first 3 step in my JCL will execute IDCAMS to check whether the file is having data or not.
The next step I will execute a XMITIP to send a mail to the user. Here comes my requirement
(i)If any of the file is having atleast 1 record means I need to execute XMITIP to send a mail to the user telling that a particular file is having data and the other two is empty
(ii) If two files are having data means I need to execute the same XMITIP to send a mail to the user telling that the two particular file are having data and the other one is empty
(iii) If all the three files are having data means I need to execute the same XMITIP to send a mail to the user telling that the three files are having data
(iv) If all the three files are empty no need to execute the same XMITIP

I have an idea like this,
Step1: Execute IDCAMS for File-1 (will use the COUNT option)
Step2: Execute IDCAMS for File-2 (will use the COUNT option)
Step3: Execute IDCAMS for File-3 (will use the COUNT option)
Step4: Considering the COND code from all the above steps I will execute the XMITIP to send a mail to the user telling that what are the files are having data.

Can anyone please help how to code the XMITIP control statements.
Back to top
View user's profile Send private message
superk

Global Moderator


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

PostPosted: Tue Apr 19, 2011 6:54 pm
Reply with quote

I'm confused. You go through this whole preamble:

saravanans4 wrote:
I have a requirement:
I have 3 files: File-1, File-2 and File-3.
The first 3 step in my JCL will execute IDCAMS to check whether the file is having data or not.
The next step I will execute a XMITIP to send a mail to the user. Here comes my requirement
(i)If any of the file is having atleast 1 record means I need to execute XMITIP to send a mail to the user telling that a particular file is having data and the other two is empty
(ii) If two files are having data means I need to execute the same XMITIP to send a mail to the user telling that the two particular file are having data and the other one is empty
(iii) If all the three files are having data means I need to execute the same XMITIP to send a mail to the user telling that the three files are having data
(iv) If all the three files are empty no need to execute the same XMITIP

I have an idea like this,
Step1: Execute IDCAMS for File-1 (will use the COUNT option)
Step2: Execute IDCAMS for File-2 (will use the COUNT option)
Step3: Execute IDCAMS for File-3 (will use the COUNT option)
Step4: Considering the COND code from all the above steps I will execute the XMITIP to send a mail to the user telling that what are the files are having data.


Just to end up with this statement:

saravanans4 wrote:

Can anyone please help how to code the XMITIP control statements.


which I'm certain you'll find documented quite clearly in the XMITIP user's manuals.

Looking at what you want to do, I'd scrap your current plan and try another approach.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts XMITIP Latest Version JCL & VSAM 2
No new posts Query on XMITIP All Other Mainframe Topics 1
No new posts Format issues using XMITIP MSGDD CLIST & REXX 5
No new posts XMITIP sends it out. Can it copy on l... IBM Tools 0
No new posts Splitting of single report to seperat... TSO/ISPF 7
Search our Forums:

Back to Top