Page 1 of 1

Get the System Date Using JCL

PostPosted: Sun Sep 27, 2015 3:07 pm
by ramrajgk
Hi,

I have requirement below:-

I have one file, in this file all records holds the date. Suppose the current year gets changed from 2015 to 2016, it should not allow the 2015 records. Date comparison must happen between the record date year and system date year.

Instead of sorting the file on year basis, i need to compare the record dates against the system date. Can you please help me on this.

Re: Get the System Date Using JCL

PostPosted: Mon Sep 28, 2015 12:18 am
by prino
Bad, bad, bad design! What happens if this job is rerun with the 2015 data on 2016-01-01, because it fell over on 2015-12-31?

Never ever use the system date for jobs like this. NEVER!

Re: Get the System Date Using JCL

PostPosted: Wed Oct 07, 2015 7:11 pm
by NicC
Can't be done "Using JCL". So, what utility were you thinking of?