I am trying to create an SQL table over a file, but I receive the error message: SQL7008-return code= 10. Out of all the possible reasons given, I think it must be something to do with the ASPs, but don't quite understand what that is alluding to. Can you shed some light on this?
Hard to say for sure without seeing your CREATE TABLE statement, but my guess would be that you're creating a foreign key constraint as part of your table definition and that foreign key constraint is referencing a table that resides in another ASP. The more common case is that people are trying to create a table in QTEMP with a primary key constraint.
MORE INFORMATION ON THIS TOPIC
Search400.com's targeted search engine: Get relevant information on DB2/400.
The Best Web Links: tips, tutorials and more.
Check out this Search400.com Featured Topic: Database issues resolved
Dig Deeper on DB2 UDB (universal databases)
Related Q&A from Kent Milligan
To solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ... Continue Reading
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ... Continue Reading
When developing tables in a parent-child relationship, use a primary key and a foreign key along with a unique ID to make your database easier to ... Continue Reading