View previous topic :: View next topic |
Author |
Message |
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Mon Jan 07, 2008 5:11 am Post subject: How to copy data from tape to disk? |
|
|
I have taken image copies for few databases. NowI need to copy that data into disk. Could anyone of you throw some light on this, how to do this. Thanks in advance. _________________ Satya |
|
Back to top |
|
|
Phantom Data Mgmt Moderator
Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Mon Jan 07, 2008 9:06 am Post subject: |
|
|
Satyender,
You could use IEBGENER, SORT, FILEAID or any such utilities to copy any dataset from any storage device to another (where you have access).
Code: |
//STEP01 EXEC PGM=SORT
//SORTIN DD DSN=your.tape.file,
// DISP=SHR,
// VOL=SER=(xxxxxxx,yyyyyyy)
//SORTOUT DD DSN=your.DASD.file,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(CYL,(xx,yy),RLSE)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
/*
|
Hope this helps,
Thanks,
Phantom |
|
Back to top |
|
|
videlord Beginner
Joined: 09 Dec 2004 Posts: 147 Topics: 19
|
Posted: Mon Jan 07, 2008 10:15 am Post subject: |
|
|
why you want to copy to DASD?
Try COPYTOCOPY utility, the new copy will be recorded in DB2 catalog table too |
|
Back to top |
|
|
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Tue Jan 08, 2008 12:56 am Post subject: |
|
|
Thanks for u r quick response.. I will try and c. _________________ Satya |
|
Back to top |
|
|
|
|