Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Test for sqlcode -904 by keeping table under copy pending

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Test for sqlcode -904 by keeping table under copy pending
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    Post subject:
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    Post subject: Reply to: Test for sqlcode -904 by keeping table under copy
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

Site Director


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

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

Hello,

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

For more complete info:
http://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    Post subject:
Reply with quote

dick scherrer wrote:
Hello,

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

For more complete info:
http://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

Site Director


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

PostPosted: Sun Dec 14, 2008 9:54 pm    Post subject: Reply to: Test for sqlcode -904 by keeping table under copy
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    Post subject:
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    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 Update table without cursor Ron Klop DB2 3 Wed Oct 11, 2017 1:06 pm
No new posts Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Z/OS hosted on Linux (zDT) or zVM - T... Pete Wilson All Other Mainframe Topics 0 Tue Sep 26, 2017 2:06 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us