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
 

 

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 how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts DB2 SQL Error: SQLCODE=-440, SQLSTATE... kishpra DB2 1 Sat Feb 18, 2017 2:31 am
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am


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