> http://www.ibm.com/developerworks/db2/library/techarticle/dm-0602rielau/
What I can see from the article you could use:
COPYSCHEMA(<TARGETSCHEMA>,<TARGETTABLESPACEINFO>,<SOURCESCHEMA>)
So. first you create a new tablespace (TARGETTABLESPACEINFO) and then run
this.

Signature
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gregor.Kovac@mikropis.si |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Frank Fiene - 05 Jul 2006 15:12 GMT
>> http://www.ibm.com/developerworks/db2/library/techarticle/dm-0602rielau/
>
> What I can see from the article you could use:
> COPYSCHEMA(<TARGETSCHEMA>,<TARGETTABLESPACEINFO>,<SOURCESCHEMA>)
> So. first you create a new tablespace (TARGETTABLESPACEINFO) and then run
> this.
As i know, all Business One tables are in one schema, but different
tablespaces for the companies.
So if i do this, i will copy all tablespaces in one schema and rename it
with one tablespace name! Right. This is bad.
Gregor Kovač - 05 Jul 2006 16:47 GMT
>>> http://www.ibm.com/developerworks/db2/library/techarticle/dm-0602rielau/
>>
[quoted text clipped - 8 lines]
> So if i do this, i will copy all tablespaces in one schema and rename it
> with one tablespace name! Right. This is bad.
Oh... Now I see :)
So, this is what you can do:
SELECT TABNAME FROM SYSCAT.TABLES WHERE TBSPACEID = (SELECT TBSPACEID FROM
SYSCAT.TABLESPACES WHERE TBSPACE = 'ts_test')
Now you have tables that are in tablespace ts_test and you can export them
and import then into new tables.

Signature
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
| Gregor Kovac | Gregor.Kovac@mikropis.si |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-