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 Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am


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