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
 

 

DB2 Sql Code=-327

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Wed Aug 29, 2007 11:36 pm    Post subject: DB2 Sql Code=-327
Reply with quote

Hi,

We havent specified any constraint on a field 'SER_DATE' of the DB2 table. (which is type of DATE ).But its not allowing to insert data greater than a range(say 2010-01-31).The field is an indexed one. how to identify the constraint specified on indexed field?

regards,
Nagu
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 29, 2007 11:53 pm    Post subject:
Reply with quote

it is not a constraint. It is a partition boundry violation. If you think you are trying to INSERT into the correct partition, you need to look at the Partition definition parms.
Back to top
View user's profile Send private message
Nagendran

New User


Joined: 24 Jan 2007
Posts: 89
Location: USA

PostPosted: Thu Aug 30, 2007 12:04 am    Post subject: Reply to: DB2 Sql Code=-327
Reply with quote

Thank you.I have some doubts...

1)how the partioned will be chosen to insert the data?
2)will it based on date? how to identify the boundary specified in the partioned(range)?

regards,
Nagu
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 30, 2007 12:17 am    Post subject:
Reply with quote

Start with the DDL that created the tables.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 30, 2007 12:24 am    Post subject:
Reply with quote

sorry, actually what you need is the partitioning index definitions. which are also ddl.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 30, 2007 12:33 am    Post subject:
Reply with quote

Here is the doc for SYSIBM.SYSINDEXPART
Which contains the Limitkey for the partition.

Here is sample SQL to access the rows containing info for your table.
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 JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts CA Workload Automation event code help vinu78 CA Products 10 Wed Mar 01, 2017 10:05 am
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm
No new posts How to Capture the Max return code of... anilkumar922 All Other Mainframe Topics 2 Thu Jan 12, 2017 12:02 pm


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