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
 

 

Check Pending State

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
sonipankaj

New User


Joined: 23 Nov 2005
Posts: 10

PostPosted: Mon Jun 15, 2009 3:15 pm    Post subject: Check Pending State
Reply with quote

Hi,

I have a table(TAB1) which is having a referential constraint on another table(TAB2).

I am loading the TAB1 by using the LOAD utility and at the time of loading TAB2 doesn't have any record. Once, the load of TAB1 is done, the utility forces the TAB2 in check pending state. Then every time I have to run the repair utility, but there is no data in the TAB2, then why DB2 is forcing TAB2 in check pending state?

Is there any way, so that TAB2 will not go in Check pending state?

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

sonipankaj

New User


Joined: 23 Nov 2005
Posts: 10

PostPosted: Mon Jun 15, 2009 3:25 pm    Post subject: Reply to: Check Pending State
Reply with quote

Just to avoid confusion,
TAB1 is Parent & TAB2 is Child(Tab1:1 to Tab2: ∞)
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 186
Location: chennai

PostPosted: Tue Jun 16, 2009 12:08 am    Post subject: Reply to: Check Pending State
Reply with quote

Hi sonipankaj

First of all you should avoid your confusion and don't try to confuse others.

When loading a "Parent" table, there will not be any check pending status.
If a check pending status occurred, then the table is a "Child" table, not a "Parent" table.


To avoid the CHECK PENDING, you can choose any one of the option below.

1.Drop the Referential Constraints between two tables and then Load the table.

2. Use SET CURRENT RULES = 'STD' before Loading.

3. Load data to the Parent table before loading the Child table.

If you are using the option 2, your utility will terminate if there is constraint violation.

Note: To remove CHECK PENDING, no need of using REPAIR utility. You can use CHECK DATA utility. That is the recommended utility.

Hope this will help you

Regards
Raghu
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm


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