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
 
Query regarding Cycle Dates

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
raj_mainframe

New User


Joined: 08 Oct 2005
Posts: 6

PostPosted: Mon Jan 02, 2006 12:47 pm    Post subject: Query regarding Cycle Dates
Reply with quote

Many COBOL Input Files used some kind of cycle dates which recognize the processing of the particular file as according to the mentioned cycle date statement in JCL in overide parameter. Can u please help me with these cycle dates i.e. What are these, what cycle dates do, how COBOL Program and JCL check these and on what parameters we can modify them.
Back to top
View user's profile Send private message

DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Wed Jan 04, 2006 12:03 am    Post subject: Re: Query regarding Cycle Dates
Reply with quote

raj_mainframe,

I?m not sure that I completely understand your question, but I?ll try to answer in the context that we use ?cycle? dates.

We use ?cycle? dates to provide the date the a job is to use to process. This is contained in file (seq, VSAM, DB2). Why use a date in a file when the system date is readily available? Here?s two examples of why we use ?cycle? dates.

1 ? Your system has been up all day and the batch processing starts at, say, 8:00pm and takes 8 hours to run. The entire jobstream needs to run on the same processing date, but 4 hours of the jobstream runs after midnight, the next day. If the jobs used the system date, half would run on a different date then the other half. So we provide, in a file, the date the jobstream should use. All jobs, regardless of the actual date they run, process for the same date. At the end of the jobstream, after all jobs have successfully completed, the ?cycle? date is updated to the next processing date.

2 ? Pretty much the same concept as case # 1. Say you?re a Bank, you?ve been processing along each day, using the concept in #1, when you discover that a program update was implemented 3 days ago and every since, the interest calculation on deposits and withdrawals has been incorrect. (Unit testing wasn?t performed correctly for the update, I mean, only one line was changed, how much could go wrong? icon_wink.gif ). The only solution is to restore the files back to the way there were 3 days ago and reprocess each days deposits/withdrawals using the ?cycle? date to give the processing date for each days transactions.

Hope this is what you might be looking for. If not, Please come back and explain your question more.

Dave,
Back to top
View user's profile Send private message
raj_mainframe

New User


Joined: 08 Oct 2005
Posts: 6

PostPosted: Wed Jan 04, 2006 8:50 am    Post subject: Re: Query regarding Cycle Dates
Reply with quote

Thanks Dave. I got the funda of Cycle Dates. If further i have query i will surely come back
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 -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts HEX value search in a DB2 query maxsubrat DB2 2 Wed Oct 04, 2017 3:04 pm
No new posts Create procedure issues -628 when add... chandraBE DB2 1 Mon Sep 18, 2017 12:16 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm

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