View previous topic :: View next topic
|
Author |
Message |
saravanans4
New User
Joined: 01 Sep 2003 Posts: 26
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
|