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

Query regarding Cycle Dates


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts RC query -Time column CA Products 3
No new posts Dynamically pass table name to a sele... DB2 2
No new posts Query on edit primary command CLIST & REXX 5
No new posts Query on edit primary command CLIST & REXX 1
No new posts Amount of days between two dates PL/I & Assembler 8
Search our Forums:

Back to Top