raj_mainframe
New User
Joined: 08 Oct 2005 Posts: 6
|
|
|
|
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. |
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
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? ). 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, |
|