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
 
Cheking the EMPTY file only on specific Month

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
rameshs78

New User


Joined: 12 Nov 2006
Posts: 8
Location: Singapore

PostPosted: Mon Sep 09, 2013 12:28 pm    Post subject: Cheking the EMPTY file only on specific Month
Reply with quote

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
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Mon Sep 09, 2013 1:13 pm    Post subject: Reply to: Cheking the EMPTY file only on specific Month
Reply with quote

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
View user's profile Send private message
rameshs78

New User


Joined: 12 Nov 2006
Posts: 8
Location: Singapore

PostPosted: Mon Sep 09, 2013 1:17 pm    Post subject: Re: Reply to: Cheking the EMPTY file only on specific Month
Reply with quote

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
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Sep 09, 2013 8:05 pm    Post subject:
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am

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