View previous topic :: View next topic
|
Author |
Message |
cdhami
New User
Joined: 24 Jan 2006 Posts: 28
|
|
|
|
Hi all,
I am having problem restarting a job.
Following is the case.
A GSAM file having 5 records are input records. However 4th record is a problematic record. program commits after 2 records are processed
when my job runs, it fails at 4th record.
when i remove/change the problematic 4th record, the restart still fails as the program still reads old data which is incorrect from the gsam file.
please suggest, why this is happening and a workaround for the same. |
|
Back to top |
|
|
dominickim
New User
Joined: 28 Feb 2007 Posts: 65 Location: NS, CA
|
|
|
|
If it is a BMP, as far as I understand, IMS remembers the record (or pointer?) of GSAM that currently processing because of the restarting purpose that to synchronize with other checkpoint. |
|
Back to top |
|
|
cdhami
New User
Joined: 24 Jan 2006 Posts: 28
|
|
|
|
Yes, its BMP
ISM remembers point of restart but here it is remembering the records read during first run (which are not present in next run) |
|
Back to top |
|
|
dominickim
New User
Joined: 28 Feb 2007 Posts: 65 Location: NS, CA
|
|
|
|
Does your job allow to restart from the top without using other checkpoint or using another previous checkpoint that successfully issued in order to point another record in GSAM file instead of abended record? |
|
Back to top |
|
|
cdhami
New User
Joined: 24 Jan 2006 Posts: 28
|
|
|
|
Restart of job is from previous checkpoint issued.
I will give the problem with example.
I/P GSAM records
1st rec - 1
2nd rec - 2
3rd rec - 3
4th rec - a
5th rec - 5
the 4th record is error
program commits after 2 records so during first run
1st rec - 1-read
2nd rec -2 -read - committed and saved 2nd record in restart area
3rd rec -3 - read
4th rec -a - read and abend.
now the gsam file is corrected
1st rec - 1
2nd rec - 2
3rd rec - 3
4th rec - 4
5th rec - 5
when the job is restarted, it should pick 4th record as 4(new corrected record).
restart flow
3rd rec -3 - read
4th rec -a - read and abend.
However it still picks 4th record as 'a'. this is puzzling me. |
|
Back to top |
|
|
dominickim
New User
Joined: 28 Feb 2007 Posts: 65 Location: NS, CA
|
|
|
|
Put your bad record (4th rec -a) into 3rd rec -3 and restart.
Of course, it will be abended on 3rd record, but I am trying to move the pointer that IMS remembers - after that change 3rd record with good one again and restart. |
|
Back to top |
|
|
cdhami
New User
Joined: 24 Jan 2006 Posts: 28
|
|
|
|
Well.
My problem is corrected.. I was using PDS member for GSAM file which was not working correctly during restart.
Thanks |
|
Back to top |
|
|
TNagaraj
New User
Joined: 30 Aug 2008 Posts: 1 Location: TamilNadu
|
|
|
|
The same problem I also faced, I've 5 Records and gave a bad data to 4th record and checkpoint is issued for 2nd record , but while restarting it reads the next record instead of 2nd record...
Thanks,
Thiru |
|
Back to top |
|
|
|