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
 

 

Creation of Table using table space.Sqlcode=-904

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

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Fri Feb 06, 2009 2:19 pm    Post subject: Creation of Table using table space.Sqlcode=-904
Reply with quote

Hi,
I am new to creating tables (though i have known it theoretically).I tried creating a table by SPUFIing the below SQL

Code:
CREATE TABLE MEM_DATA(             
        MEMBER_ID CHAR(8) NOT NULL,
        PROVIDER_ID CHAR(12),       
        FIRST_NAME CHAR(50),       
        LAST_NAME CHAR(50),         
        DATE_OF_SERVICE DATE,       
        PROCEDURE_CODE CHAR(03),   
        CONTROL_CODE CHAR(09),     
        SUFFIX CHAR(03),           
        ACCOUNT CHAR(05),           
        PRIMARY KEY(MEMBER_ID)     
  ) IN Database.Table Space;             


It failed with an SQLCODE of -904

Code:
DSNT408I SQLCODE = -904, ERROR:  UNSUCCESSFUL EXECUTION CAUSED BY AN  UNAVAILABLE RESOURCE. REASON 00D70024, TYPE OF RESOURCE 00000220, AND
         RESOURCE NAME FWS21129.DSNDBC.DB211291.TS001.I0001.A001             
DSNT418I SQLSTATE   = 57011 SQLSTATE RETURN CODE                             
DSNT415I SQLERRP    = DSNXICTB SQL PROCEDURE DETECTING ERROR           


I checked the manuals for 00D70024 ,it says

Quote:
'Ensure that the data set and its pack are available to DB2 and that the data set has not been inadvertently deleted or migrated by any DASD operation. '


I am not sure what dataset and its pack are referred to.
Please assist.
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Fri Feb 06, 2009 2:34 pm    Post subject: Reply to: Creation of Table using table space.Sqlcode=-904
Reply with quote

Hi,

I think underlying dataset for your table space/table might be migrated or deleted.

Can you access other tables from this database/table space?

You have to talk with DBA for this.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Feb 06, 2009 3:46 pm    Post subject:
Reply with quote

Hi,

Getting in contact with DBA should be helpful - at my shop recently, in test region even, developers are no longer allowed to create "test Tables"...
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 SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


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