View previous topic :: View next topic
|
Author |
Message |
rameshs78
New User
Joined: 12 Nov 2006 Posts: 8 Location: Singapore
|
|
|
|
Hi,
I would like to check a seq file only in a particular month for NONEMPTY, my JCL runs every month that process other items.
For example, Job xxxxxx runs every 2nd of the month, but I get the records from the input only in Dec. In the month of December, the file must not be empty, if it happens to be then my job has to abend.
Could anyone help on this? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Change your program such that, using the business/data date, it knows when December is. If it is Decemeber and the file contains no records, abend. |
|
Back to top |
|
|
rameshs78
New User
Joined: 12 Nov 2006 Posts: 8 Location: Singapore
|
|
|
|
Hi Bill,
If possible, could you give me some sample code?
Thanks
Bill Woodger wrote: |
Change your program such that, using the business/data date, it knows when December is. If it is Decemeber and the file contains no records, abend. |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
We would hope that after 7 years, you would know which logic to use to determine the month . . .
We will help, but we try to Not do the work for people.
Show what you have and where you are sruck.
Quote: |
If possible, could you give me some sample code? |
With what you have provided (nothing), no one can write code and be sure that is what would do the necessary . . . For your own work, you need to show what you have and the rules for processing what you have. You also need to show the output needed from that input. |
|
Back to top |
|
|
|