Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Unloading from a DB2 image copy

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
naive

New User


Joined: 26 Apr 2005
Posts: 47
Location: LA

PostPosted: Thu Jun 09, 2005 3:42 am    Post subject: Unloading from a DB2 image copy
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
References
PostPosted: Thu Jun 09, 2005 3:42 am    Post subject: Re: Unloading from a DB2 image copy Reply with quote

MGIndaco

Moderator


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

PostPosted: Thu Jun 09, 2005 6:00 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1