Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Restart of GSAM file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Restart of GSAM file
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    Post subject: Is your program runing as a BMP?
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    Post subject:
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    Post subject: Does your job allow to restart from the top?
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    Post subject:
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    Post subject: Could you please try this if it make sense to you?
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    Post subject:
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    Post subject: Reply to: Restart of GSAM file
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us