Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 4649
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 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
No new posts JCL -> Rexx -> XMITIP : Doesnt ... enrico-sorichetti CLIST & REXX 2 Thu Aug 06, 2015 11:09 pm
No new posts Need help for XMITIP graswant IBM Tools 7 Wed Apr 23, 2014 2:37 pm
This topic is locked: you cannot edit posts or make replies. Zipping Multiple RTF files using XMITIP Sridhar R JCL & VSAM 1 Thu Nov 08, 2012 11:39 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us