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
 

 

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

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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm


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