IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cheking the EMPTY file only on specific Month


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Mon Sep 09, 2013 1:13 pm
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
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

Moderator Emeritus


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

PostPosted: Mon Sep 09, 2013 8:05 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top