Hello,
This is LeShe and I need your guidance when it comes in doing checkpoint / restart for IMS DB Program (with update). Basically, I need to work on it as this is urgently needed by our team for training purposes. Since I already forgot on how to code this from scratch, can you guide me on the following items:
Overview:
I have 2 GSAM Files (1 as input and the other as output, both have 120 bytes in length) and 1 DB with 4 segments. Currently, our sample program can already issue replace/insert/delete for a specific segment which is dictated by the input file and can already write to the output file successfully as well. I want to have a checkpoint for every 3 records read.
Items needed in code details:
1) Checkpoint instruction (paragraph) to save the record read as well as the output written. (I remember that this is issued after a full processing of a given record. I already forgot the syntax for this.)
2) Restart instruction (paragraph) to move the save data from the latest checkpoint. (I remember that this should be done in immediately (normally in INITIALIZATION) before any other processing of the program. I already forgot the syntax for this).
3) Checking if the program needs a restart or not. (I remember that I can check the restart work area on this if spaces or not, but I forgot on how to identify if the field is for restart work area).
4) Checking if the program needs to issue a checkpoint or not. (I remember that we are using computation with remainder on this, kindly guide me on this)
Kindly let me know your inputs.
Thank you very much in advance,
LeShe