IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Imagecopy of Partitioned tablespace.


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Sat May 01, 2010 12:16 pm
Reply with quote

PLease help me on the following queries related to Imagecopy of Partitioned tablespace.

1. How to identify the details of Partitioned tablespace like number partition in a particular tablespace.

2. how to make a image copy of Partitioned tablespace in a way such that DIFFERENT PARTITION are stored IN DIFFERENT DDS.

I tried the following:

sysin dd *
copy tablespace databasename.tablespacename
copy DDN (DD01,DD02)

THIS IS MAKING SAME COPY IN BOTH THE DD'S

Looking for some solutions or helpful links.

Regards,
Sajjan.
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Sun May 02, 2010 8:44 am
Reply with quote

Hi Sajjan,

Quote:
How to identify the details of Partitioned tablespace like number partition in a particular tablespace.

Code:
select dbname, tsname, partition from SYSIBM.SYSTABLEPART
where dbname like '%dbname%' and tsname like '%tsname%';

Quote:
how to make a image copy of Partitioned tablespace in a way such that DIFFERENT PARTITION are stored IN DIFFERENT DDS

Not Tested! Try and let us know if you get any errors......
Code:
LISTDEF XTSPARTs INCLUDE TABLESPACE X PARTLEVEL

TEMPLATE TMP1 UNIT SYSDA
DSN (HLQ.&DB..&TS..&PART.)
DISP (MOD,CATLG,CATLG)

COPY LIST XTSPARTs COPYDDN (TMP1) PARALLEL (2) SHRLEVEL REFERENCE

Thank You,
Sushanth
Back to top
View user's profile Send private message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Wed May 26, 2010 4:44 pm
Reply with quote

Thanks.
I have executed query :

SELECT DBNAME, TSNAME, PARTITION FROM SYSIBM.SYSTABLEPART
WHERE DBNAME LIKE '%RDBDB006%' AND TSNAME LIKE '%RDBSIJTS%'

I got 16 partition for tablespace DBSIJTS.

Then i have tried above code to copy each partition in different dataset. I have put 16 in place of X.

I m getting error "INVALID OPERAND '16' FOR KEYWORD 'LISTDEF' ".

After removing 16, it gives error


DSNU1038I DSNUGDYN - DATASET ALLOCATED. TEMPLATE=TMP1
DDNAME=SYS00001
DSN=RDBD.PEXTB.N.PRICING.IMAGECPY.FILE
DSNU1038I DSNUGDYN - DATASET ALLOCATED. TEMPLATE=TMP1
DDNAME=SYS00002
DSN=RDBD.PEXTB.N.PRICING.IMAGECPY.FILE
DSNU091I DSNUBBID - DDNAME 'SYS00001' IS A DUPLICATE
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed May 26, 2010 6:03 pm
Reply with quote

Sajjan,

Thanks for testing.

I think, I should have used more xxxxx's.

Code:
LISTDEF XTSPARTs INCLUDE TABLESPACE database.tablespacename PARTLEVEL

TEMPLATE TMP1 UNIT SYSDA
DSN (hlq.&DB..&TS..P&PART.)
DISP (MOD,CATLG,CATLG)

COPY LIST XTSPARTs COPYDDN (TMP1) PARALLEL (2) SHRLEVEL REFERENCE


Try now.

You should checkout, utility reference & guide for info.

Thanks,
Sushanth
Back to top
View user's profile Send private message
ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Wed May 26, 2010 6:28 pm
Reply with quote

Use DSNUM option to get the image copy of partitions; probably using individual jobs for each partition.
Back to top
View user's profile Send private message
sajjan jindal
Warnings : 1

New User


Joined: 09 Sep 2007
Posts: 60
Location: india

PostPosted: Wed May 26, 2010 6:35 pm
Reply with quote

Thanks

I got RC 0.

I was missing PARTLEVEL PARTLEVEL-NUMBER[/img][/quote]
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts force tablespace using LISTDEF input DB2 1
No new posts Map VSAM Dataset to a Table/Tablespace DB2 5
No new posts DB2 tablespace space limitation DB2 3
No new posts Issue While Recovering a Tablespace DB2 4
No new posts Need inputs on DB2 tablespace/table r... DB2 3
Search our Forums:

Back to Top