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

Test for sqlcode -904 by keeping table under copy pending


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
renjithravi

New User


Joined: 28 Jul 2008
Posts: 14
Location: Chennai

PostPosted: Fri Dec 12, 2008 10:20 pm
Reply with quote

Hello,

I have one cobol db2 program. The program is reading rows from a DB2 table. I would like to test for sqlcode -904 by keeping the table under copy pending. Can anyone please explain me how i can do that?

Thanks and regards
Renjith
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Sat Dec 13, 2008 10:56 pm
Reply with quote

Stop the database/tablespace for a while if you have access to do so.
Syntax is
Code:
STOP DB(dbname) SPACENAM(tsname)


You can execute it thru Platinum utility if your shop has it. Otherwise run a JCL to accomplish the objective.
Back to top
View user's profile Send private message
renjithravi1
Warnings : 2

New User


Joined: 31 May 2005
Posts: 16

PostPosted: Sat Dec 13, 2008 11:24 pm
Reply with quote

hi thanks

can u send me also how to restart the table again
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Dec 14, 2008 12:48 am
Reply with quote

Hello,

Try:
Code:
START DB(dbname) SPACENAM(tsname)

For more complete info:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dsncrj10/3.58?
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Sun Dec 14, 2008 8:08 pm
Reply with quote

dick scherrer wrote:
Hello,

Try:
Code:
START DB(dbname) SPACENAM(tsname)

For more complete info:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/dsncrj10/3.58?


It does not work in my shop. I would suggest
Code:
START DB(dbname) SPACENAM(tsname) ACCESS(FORCE)
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Dec 14, 2008 9:54 pm
Reply with quote

Yup, that's why the link was included - just in case icon_smile.gif

d
Back to top
View user's profile Send private message
Bharath Bhat

Active User


Joined: 20 Mar 2008
Posts: 283
Location: chennai

PostPosted: Mon Dec 15, 2008 11:54 am
Reply with quote

It says the execution was successful. But it does not clear the -904. I thought the OP might think it worked and never bother about the link (like me icon_redface.gif ).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts SCOPE PENDING option -check data DB2 2
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top