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

Unloading from a DB2 image copy


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naive

New User


Joined: 26 Apr 2005
Posts: 46
Location: LA

PostPosted: Thu Jun 09, 2005 3:42 am
Reply with quote

We are trying to create an unload from a DB2 image copy.Currently we are using DSNUTILB program with the FROMCOPY parameter to create the unload. The exact jcl is shown below:

//UTIL EXEC DSNUPROC,SYSTEM=DB2A,UID='UNLOAD'
//ULDDDN DD DSN=unload.dataset,DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(1,1),RLSE),DCB=MODEL
//PNHDDN DD DSN=unload.PUNCH,DISP=(OLD,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(TRK,(5,5),RLSE),DCB=MODEL
//SYSIN DD *
UNLOAD TABLESPACE tablespacename
FROMCOPY Imagecopyname
PUNCHDDN PNHDDN UNLDDN ULDDDN

I was wondering if there is any other means by which we can create this unload from the imagecopy.

One more problem is , as the GDG version of the imagecopy keeps on changing daily, we have to change the SYSIN parameter daily.
One way around is to make a separate (temporary) copy of the latest GDG and use this copy in this step.(to avoid changing the SYSIN parameter everyday). But this requires both time and space.

Just wondering if there is any other way around this.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Thu Jun 09, 2005 6:00 pm
Reply with quote

Try with this help from IBM.
You can specify the FROMCOPYDDN and specify in your jcl the gdg with the last version (0).
http://publib.boulder.ibm.com/infocenter/dzichelp/index.jsp?topic=/com.ibm.db2.doc.ugref/bjnbmstr35.htm
I hope in this help.
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 VB to VB copy - Full length reached SYNCSORT 8
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts DB2 Table - Image copy unload IBM Tools 2
No new posts How to copy the -1 version of a membe... TSO/ISPF 4
Search our Forums:

Back to Top