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
 
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: 6968
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: 6968
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: 6968
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: 6968
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 Speed-up/reduce CPU use of code prino PL/I & Assembler 0 Tue Sep 26, 2017 12:05 am
This topic is locked: you cannot edit posts or make replies. how to code for GDG in Rexx cvnlynn CLIST & REXX 13 Wed Aug 09, 2017 9:13 pm
This topic is locked: you cannot edit posts or make replies. rexx code to create a ps file Bharath Vikraman CLIST & REXX 4 Mon Aug 07, 2017 10:30 am
No new posts I want to retire TRX and use only Rex... Abhinav Sharma CLIST & REXX 6 Sat Jul 29, 2017 2:53 am
No new posts UNIT=AFF for Easytrieve code gandikk JCL & VSAM 7 Wed Jul 12, 2017 11:42 pm

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