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

How to find Status Copy Pending in system catalog?


IBM Mainframe Forums -> DB2
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Mon Jun 10, 2013 8:01 pm
Reply with quote

Hello all,

today I deleted some image copy entries from SysIBM.SysCopy using the MODIFY RECOVERY command. - Which was my first time doing this...
The result was that some of the table spaces felt in status Copy Pending.
The good thing was I was able to verify the SysPrint, start new full image copies of the affected ts and reset their status.
But: Is it possible to query the system catalog if there is any table space in status Copy Pending? - Or the other table space, index etc. status?
Thank you for your hints
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Mon Jun 10, 2013 8:29 pm
Reply with quote

You can identify copy pending status by running the DB2 command

Code:
-DIS DB(<DATABASE NAME>) SPACE(<TABLE SPACE NAME>)
Back to top
View user's profile Send private message
Bang_1

New User


Joined: 08 May 2009
Posts: 39
Location: Bangalore

PostPosted: Mon Jun 10, 2013 9:03 pm
Reply with quote

Hi Auryn,
If you need Table Spaces or Indexes that are in restrictive / pending status alone under a particular database, use the below DB2 command

-DIS DATABASE(dbname) SPACENAM(*) RESTRICT
Back to top
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Thu Jan 16, 2014 7:03 pm
Reply with quote

This thread hat been fallen into oblivion to me for a while.
But today it's getting relevant again.

The both Commands were helpful to me last summer and today again.

But my opening question was:
Is it possible to retrieve the Copy-Pending status by analyzing any Sysibm.Sys... Tables? I.e. in column SysTableSpaces.Status you can see if the tablespace is active, in status CHECK pending and some others.
But - according to my documentations - there is no value for status COPY pending.
Where else is this stored?
How can I retrieve this with a (more or less) simple SQL Select query?
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Tue Jan 21, 2014 8:54 pm
Reply with quote

ibmmainframes.com/viewtopic.php?t=54613
Back to top
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Wed Jan 22, 2014 2:47 pm
Reply with quote

GuyC wrote:
http://ibmmainframes.com/viewtopic.php?t=54613


Thank you for pointing out the DB2 Command and repeating older answers.

But this is not what I was asking for...

Again:
I'm asking for a select statement similar to
Code:
SELECT *
FROM sysibm.sys???
WHERE SysCol = '???'
WITH UR

that achieves the same result than he mentioned DB2 command...
Back to top
View user's profile Send private message
Pandora-Box

Global Moderator


Joined: 07 Sep 2006
Posts: 1592
Location: Andromeda Galaxy

PostPosted: Wed Jan 22, 2014 3:23 pm
Reply with quote

Auryn - Did you care to read the reply ?

GuyC wrote:
I don't think it is reflected in the catalog.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Jan 22, 2014 6:10 pm
Reply with quote

Again:

There is no SQL/Select statement for what you are asking for.

The DB2 Command is the old, new and only answer.

Please reply your understanding, so the moderator can lock this topic.
Back to top
View user's profile Send private message
Auryn

New User


Joined: 11 Jan 2006
Posts: 83
Location: Lower Saxony (DE)

PostPosted: Wed Jan 22, 2014 6:32 pm
Reply with quote

GuyC wrote:
I don't think it is reflected in the catalog. (...)


1000 Sorries for my last post, I had overlooked that sentence :-(
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Sysplex System won't IPL at DR site I... All Other Mainframe Topics 2
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top