MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Error while erasing records thru batch program and dmlo.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
Ram
Beginner


Joined: 12 Jan 2004
Posts: 53
Topics: 12

PostPosted: Thu Sep 16, 2004 12:59 pm    Post subject: Error while erasing records thru batch program and dmlo. Reply with quote

Hi All,

I am trying to free up some space in our development systems. I am trying to delete first 100 occurences of a particular record. This is how I am doing it :
Obtain next record within <area>
erase <rec type> all members.

The IDMS error code when I execute the erase stmt is '0202' or '0260' or '0226'. I am getting the same error codes when I do it thu batch or dmlo. I tried readying all areas , but it does'nt work Confused .

Any help would be greatly appreciated Smile .

Thanks
Ram
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 16, 2004 1:35 pm    Post subject: Reply with quote

Ram,
Here is an explanation of the Error-codes you are getting.

0202 - DBKEY is inconsistent

Probable causes are:

1) DBKEY may have a wrong value, nulls, zero, or overlaid working storage
2) Record name is incorrect
3) Wrong Subschema
4) DBKEY is outside of page range for Area

0226 - Record not found

Probable causes are:

Possible Broken Chain.

If you are running on a nonproduction system, this error often means a VDB shadow needs to be refreshed

0260 - A record occurrence has been encountered whose type is inconsistent with the set named in the error set field of the IDMS Control Block.

1) An affected record occurrence has been found in the database, but its record-type has
not been found in the subschema as a member or owner of the set.

Probable causes are:
(a) A broken chain exists in the database due to improper recovery.
(b) A new schema and associated subschemas describe an existing database improperly.
(c) VDB Shadow (Virtual Database) too far out-of-sync with live database.


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Ram
Beginner


Joined: 12 Jan 2004
Posts: 53
Topics: 12

PostPosted: Fri Sep 17, 2004 3:11 pm    Post subject: Reply with quote

Kolusu

Thanks a zillion for the reply Razz . So I believe its the DBA's who will have to fix these errors Confused . You mentioned about VDB Shadow. Could you pls provide links or expain in brief what it atually means ?

Thanks
Ram
Back to top
View user's profile Send private message
vivek
Beginner


Joined: 15 Jul 2004
Posts: 95
Topics: 11
Location: Edison,NJ

PostPosted: Tue Sep 21, 2004 9:01 am    Post subject: Reply with quote

Quote:

Obtain next record within <area>
erase <rec type> all members.


Ram, usually u start an area sweep with Obtain first. Then you issue an obtain next. I am not sure what role db key plays incase of an area sweep. It matters when it is an access by DB KEY.
_________________
Vivek,NJ

Db2,IDMS
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group