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
 

 

How to create a DB2 tablespace using spufi???

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

New User


Joined: 10 Feb 2011
Posts: 1
Location: United Kingdom

PostPosted: Thu Feb 10, 2011 9:51 am    Post subject: How to create a DB2 tablespace using spufi???
Reply with quote

Hi,

I am trying to create my own database, storage group and tablespace using the following query in SPUFI. But I am facing problem with tablespace creation query. Can anyone please guide me?

Thanks in Advance..

Query:
CREATE DATABASE DBS2302 STOGROUP STGS2302;
---------+---------+---------+---------+---------+---------+
DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS 0
---------+---------+---------+---------+---------+---------+

CREATE TABLESPACE TSS2302 IN DBS2302
USING STOGROUP STGS2302
BUFFERPOOL BP0;
---------+---------+---------+---------+---------+---------+---------+--
DSNT408I SQLCODE = -204, ERROR: STGS2302 IS AN UNDEFINED NAME
DSNT418I SQLSTATE = 42704 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXISUB SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = 40 0 0 -1 0 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'00000028' X'00000000' X'00000000' X'FFFFFFFF'
X'00000000' X'00000000' SQL DIAGNOSTIC INFORMATION
---------+---------+---------+---------+---------+---------+---------+--
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu Feb 10, 2011 12:09 pm    Post subject:
Reply with quote

you probably have to qualify the storage group name,
since under spufi,
you are running with your userid as creator.

easiest way to find out is look at the sysibm. table that lists storage groups.
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 186
Location: chennai

PostPosted: Fri Feb 11, 2011 2:17 pm    Post subject: Reply to: How to create a DB2 tablespace using spufi???
Reply with quote

Hi

You probably mentioned a STOGROUP name which is not available in the catalog table(SYSIBM.SYSSTOGROUP).

Check the SYSIBM.SYSSTOGROUP table for the existance of the STOGROUP you have mentioned in the statement.

The STOGROUP you specified in the create database statement will bypass the STOGROUP name if it is not in the catalog table and will use the default STOGROUP name (SYSDEFLT).

But when you are creating a tablespace in a STOGROUP, DB2 will check whether it is available in the catalog table..

Hope this will help you.

Regards
Raghu
Back to top
View user's profile Send private message
Raghu navaikulam

Active User


Joined: 27 Sep 2008
Posts: 186
Location: chennai

PostPosted: Fri Feb 11, 2011 2:18 pm    Post subject: Reply to: How to create a DB2 tablespace using spufi???
Reply with quote

Hi sreenath.yettapu

Test it and post the result.

Regards
Raghu
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 Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts copy SEQ to PDS and create stats steve-myers JCL & VSAM 5 Thu Apr 27, 2017 1:15 am
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm


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