the data in GSAM vanishes while it should be there

IBM's Hierarchical DBMS and Transaction Manager (IMS DC).
Previous topicNext topic

Topic Author
Om Prakash
Registered Member
Posts: 22
Joined: Tue Jul 23, 2013 3:22 pm
Zodiac: Aquarius

the data in GSAM vanishes while it should be there

Post by Om Prakash » Mon Jun 01, 2015 7:36 pm

I was recently working with GSAM files and every time when there is an abend I restart the Job, the data in GSAM vanishes while it should be there?




enrico-sorichetti
Global Moderator
Global Moderator
Posts: 892
Joined: Wed Sep 11, 2013 3:57 pm

Re: the data in GSAM vanishes while it should be there

Post by enrico-sorichetti » Mon Jun 01, 2015 7:45 pm

data contained in a GSAM is handled by IMS/DB recovery/restart rules
for an output GSAM database the data inserted will be considered in-flight until a sync point/checkpoint is taked

if Your program does not take any sync points all the data will be considered in-flight
and the database content will the content it had at the start of the program execution,
but the same would happen also to all the updates to the other databases used.


cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)


Topic Author
Om Prakash
Registered Member
Posts: 22
Joined: Tue Jul 23, 2013 3:22 pm
Zodiac: Aquarius

Re: the data in GSAM vanishes while it should be there

Post by Om Prakash » Tue Jun 02, 2015 1:00 pm

But the very ame logic works in other programs...and we are taking checkpoints. If there is no abend you can see the data for the last checkpoint in the GSAM but in case of abend, the data is still there until we restart the job. This is confusing and we are not able to solve it...could there be any other reason?



User avatar

Anuj Dhawan
Founder
Posts: 2624
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: the data in GSAM vanishes while it should be there

Post by Anuj Dhawan » Wed Jun 03, 2015 11:50 am

What IMS abend do you get? I'd suspect U0102 IMS abend, please confirm.

With the above guess - I'd assume, you are allocating GSAM in the first step of your job and forcing an abend. Now if all works well then the 'parm' at the time of restart will not be blank and IMS has to go out to DD statement referring to the GSAM and starts trying to find the checkpoint given by the parm. Now if it's able to locate the last checkpoint taken you'll get an abend.

Keeping this explanation in mind, please answer the question in first statement of this post.


Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.


Topic Author
Om Prakash
Registered Member
Posts: 22
Joined: Tue Jul 23, 2013 3:22 pm
Zodiac: Aquarius

Re: the data in GSAM vanishes while it should be there

Post by Om Prakash » Thu Jun 04, 2015 2:18 pm

Hi Anuj,

Yes, it is U0102 abend of IMS. Can you please help?




enrico-sorichetti
Global Moderator
Global Moderator
Posts: 892
Joined: Wed Sep 11, 2013 3:57 pm

Re: the data in GSAM vanishes while it should be there

Post by enrico-sorichetti » Thu Jun 04, 2015 2:32 pm

why not read the manuals Yourself
and/or involve Your support group to do the work for which they are getting paid ???


cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)

User avatar

Anuj Dhawan
Founder
Posts: 2624
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Zodiac: Sagittarius

Re: the data in GSAM vanishes while it should be there

Post by Anuj Dhawan » Thu Jun 04, 2015 3:26 pm

Please show your JCL to get a better answer. On the other hand, I'd guess that you allocate the GSAM in a prior step before executing the program in question. If so, at the time of restart comment out the step allocating the GSAM and it should help you to get away from the abend - this is one of the most common reason behind while you check the check-point-restart for an IMS program,


Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.

Previous topicNext topic

Return to “IMS DB/DC.”