View previous topic :: View next topic
|
Author |
Message |
renjithravi
New User
Joined: 28 Jul 2008 Posts: 14 Location: Chennai
|
|
|
|
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 |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
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 |
|
|
renjithravi1 Warnings : 2 New User
Joined: 31 May 2005 Posts: 16
|
|
|
|
hi thanks
can u send me also how to restart the table again |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
It does not work in my shop. I would suggest
Code: |
START DB(dbname) SPACENAM(tsname) ACCESS(FORCE) |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Yup, that's why the link was included - just in case
d |
|
Back to top |
|
|
Bharath Bhat
Active User
Joined: 20 Mar 2008 Posts: 283 Location: chennai
|
|
|
|
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 ). |
|
Back to top |
|
|
|