Hi,
Can anyone please get me a sample batch file processing COBOL code with checkpoint and restart logic? I need this urgently.....
Checkpoint restart sample program
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Checkpoint restart sample program
Hello Sarfraz S and welcome to the forums,
Logging/recovery/chekpoint/restart are decided for an entire application or database environment. If you are working on an existing system, you need to follow whatever convention is being used by that system. If this is a new system, these decisions need to be made before code is implemented because the way this is handled can influence how programs are structured.
Checkpoint/restart is not something that is just "stuck" into a program.Can anyone please get me a sample batch file processing COBOL code with checkpoint and restart logic?
Logging/recovery/chekpoint/restart are decided for an entire application or database environment. If you are working on an existing system, you need to follow whatever convention is being used by that system. If this is a new system, these decisions need to be made before code is implemented because the way this is handled can influence how programs are structured.
Sorry, we don't do urgent here. . .I need this urgently.....
Hope this helps,
d.sch.
d.sch.
-
- Posts: 4
- Joined: Sat Jun 28, 2008 2:31 pm
- Skillset: COBOL, JCL, IMS DB, DB2
- Referer: Website
Re: Checkpoint restart sample program
Thanks for the reply.... But I need atleast the psuedocode considering a normal file processing program which reads an input file, takes checkpoint at every 100th record (for example) and if it abends at say 571st record, then it should restart from the 501st record. Here no database is involved and it is a pure batch file processing program. It would be of great help to me if you could get me atleast the pseudocode for it.
Thanks in advance
Thanks in advance
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Checkpoint restart sample program
Hello,
Is this somethng for class or for actual work?
How do you intend to keep track of the restart point if not written/committed to a restart table or ?
There is more to a program than input. . . All output needs to be re-syncronized - including totals that were being accumulated.
Places that use this type of restart have well-documented processes on how to handle a restart - you do not just "make one up" for a given program.
With today's bigger/faster computers, many places have gotten away from using checkpoint/restart. It is faster and safer to re-run from the beginning than try to re-start in the middle.
The simplest pseudo-code wuld be:
Begin
If a restart, re-sync.
Process from where we are now (beginning or restart point).
End
Is this somethng for class or for actual work?
Here no database is involved and it is a pure batch file processing program.
How do you intend to keep track of the restart point if not written/committed to a restart table or ?
There is more to a program than input. . . All output needs to be re-syncronized - including totals that were being accumulated.
Places that use this type of restart have well-documented processes on how to handle a restart - you do not just "make one up" for a given program.
With today's bigger/faster computers, many places have gotten away from using checkpoint/restart. It is faster and safer to re-run from the beginning than try to re-start in the middle.
The simplest pseudo-code wuld be:
Begin
If a restart, re-sync.
Process from where we are now (beginning or restart point).
End
Hope this helps,
d.sch.
d.sch.
-
- Posts: 62
- Joined: Wed Apr 23, 2008 1:37 pm
- Skillset: Mainframe - JCL, COBOL, VSAM, DB2, REXX, CICS
- Referer: Internet Search
- Location: Chennai, India
- Contact:
Re: Checkpoint restart sample program
Dick,
looking at your reply, i understand that it requires system side configuration also apart from developer changes in the program. if it requires system configuration/setup, what kind of setup does it require? Please give an example... could you please explain more on the pseudocode given below.. a simple example would be a great help!!!
Regards,
Jay
looking at your reply, i understand that it requires system side configuration also apart from developer changes in the program. if it requires system configuration/setup, what kind of setup does it require? Please give an example... could you please explain more on the pseudocode given below.. a simple example would be a great help!!!
The simplest pseudo-code wuld be:
Begin
If a restart, re-sync.
Process from where we are now (beginning or restart point).
End
Regards,
Jay
- dick scherrer
- Global moderator
- Posts: 6268
- Joined: Sat Jun 09, 2007 8:58 am
Re: Checkpoint restart sample program
Hello,
As i mentioned before, this is done less and less these days. Existing methodologies are often continued, but as new processes are developed it is almost always decided to rerun rather than "restart in the middle".
These are not operating system changes but rather application system/database considerations.i understand that it requires system side configuration also apart from developer changes in the program.
Decisions must be made as to how restart/recovery will be handled across that application and/or database and/or external data (reports, qsam files, etc). This is almost never done by just the programmer. . . An individual program's restart would be done by the programmer, but following the overall restart methodology.what kind of setup does it require?
As i mentioned before, this is done less and less these days. Existing methodologies are often continued, but as new processes are developed it is almost always decided to rerun rather than "restart in the middle".
Hope this helps,
d.sch.
d.sch.
-
- Posts: 278
- Joined: Thu May 15, 2008 9:45 pm
- Skillset: MVS
MQ
ISPF - Referer: sister site
Re: Checkpoint restart sample program
For basic sequential batch processes with multi-volume files (non-VSAM), DFSMS offers an automated checkpoint process at each volume change. Code CHKPT=EOV on the multi-volume DD statement and DFSMS will take checkpoints for you. Add SYSCHK DD to record the checkpoint records.
Read about it in the DFSMS Checkpoint/Restart manual for use and restrictions.
Read about it in the DFSMS Checkpoint/Restart manual for use and restrictions.
Regards,
Bill Dennis
Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
-
- Similar Topics
- Replies
- Views
- Last post
-
- 0
- 2326
-
by VJSIRI
View the latest post
Fri Nov 13, 2020 1:53 am
-
- 6
- 2551
-
by sergeyken
View the latest post
Wed Nov 24, 2021 11:26 pm
-
-
Restart a program that has only GSAM output files
by RajaniSiddineni » Thu Jul 22, 2021 7:48 pm » in IMS DB/DC - 1
- 3984
-
by Isakshields
View the latest post
Mon Aug 09, 2021 5:57 pm
-
-
- 2
- 2978
-
by willy jensen
View the latest post
Wed Jan 04, 2023 2:17 pm
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2593
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-