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

Restart of GSAM file


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
cdhami

New User


Joined: 24 Jan 2006
Posts: 28

PostPosted: Wed Apr 08, 2009 3:16 pm
Reply with quote

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
View user's profile Send private message
dominickim

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Wed Apr 08, 2009 3:56 pm
Reply with quote

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
View user's profile Send private message
cdhami

New User


Joined: 24 Jan 2006
Posts: 28

PostPosted: Wed Apr 08, 2009 5:20 pm
Reply with quote

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
View user's profile Send private message
dominickim

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Wed Apr 08, 2009 8:14 pm
Reply with quote

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
View user's profile Send private message
cdhami

New User


Joined: 24 Jan 2006
Posts: 28

PostPosted: Thu Apr 09, 2009 10:22 am
Reply with quote

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 icon_evil.gif
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 icon_lol.gif
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
View user's profile Send private message
dominickim

New User


Joined: 28 Feb 2007
Posts: 65
Location: NS, CA

PostPosted: Thu Apr 09, 2009 3:14 pm
Reply with quote

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
View user's profile Send private message
cdhami

New User


Joined: 24 Jan 2006
Posts: 28

PostPosted: Tue Apr 14, 2009 12:19 pm
Reply with quote

Well.
My problem is corrected.. I was using PDS member for GSAM file which was not working correctly during restart.

Thanks
Back to top
View user's profile Send private message
TNagaraj

New User


Joined: 30 Aug 2008
Posts: 1
Location: TamilNadu

PostPosted: Wed Apr 22, 2009 11:00 pm
Reply with quote

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
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top