Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Need help on XMITIP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Need help on XMITIP
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

Moderator Team Head


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

PostPosted: Tue Apr 19, 2011 6:54 pm    Post subject: Re: Need help on XMITIP
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Query on XMITIP abdulrafi All Other Mainframe Topics 1 Wed Oct 25, 2017 6:54 pm
No new posts Format issues using XMITIP MSGDD ssdjp1 CLIST & REXX 5 Mon Oct 23, 2017 8:47 pm
No new posts XMITIP sends it out. Can it copy on l... Rommel Dayon Rustia IBM Tools 0 Tue Sep 05, 2017 10:16 am
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm
No new posts XMITIP, sending the mainframe data in... dharmaraok TSO/ISPF 7 Fri Aug 21, 2015 4:29 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us