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: 7314

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 IDCAMS RENAMING VSAM FILE ALONG WITH ... upendrasri JCL & VSAM 11 Tue Apr 17, 2018 10:42 pm
No new posts VSAM file NOT Found error while proce... SumaReva CICS 5 Wed Apr 11, 2018 9:54 pm
No new posts converting a mainframe file with ASA ... Lynne Schuler All Other Mainframe Topics 5 Wed Apr 04, 2018 9:44 am
No new posts VSAM File free space sancraig16 JCL & VSAM 13 Fri Mar 30, 2018 1:02 am
No new posts SORT 3 files,extract specific fields ... Kiransr DFSORT/ICETOOL 13 Fri Mar 23, 2018 10:54 am

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