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

To load DB2 table from Image copy


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

Active User


Joined: 18 Jun 2007
Posts: 213
Location: Cochin/Kerala/India

PostPosted: Thu Jun 21, 2012 8:52 pm
Reply with quote

Hi All,

Is any way to load a tables from the image copy dataset.Also wanted to know that whether we can convert image copy dataset to loadfile format

Regards,
Bipin Peter.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Thu Jun 21, 2012 8:55 pm
Reply with quote

The manuals for the load and unload utilities that your shop uses -- whether IBM, BMC, or other -- will explain the process; read them.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jun 21, 2012 9:34 pm
Reply with quote

Hello,

Kinda pedestrian, but works:

Reload from the image copy (into a testing area). Unload the data into the format you want.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Fri Jun 22, 2012 12:27 am
Reply with quote

The UNLOAD utility (not to be confused with DSNTIAUL, which is not a utility), can process an image copy data set in lieu of a real table space. See the DB2 Utilities manual for details.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 22, 2012 1:49 am
Reply with quote

Hi Don,

I have no idea Why, but several places i've been are reluctant to work with the Image Copy data. . .

Thoughts? Might this just be an unwillingness to learn a "newtrick" icon_confused.gif

Thanks,

d
Back to top
View user's profile Send private message
agkshirsagar

Active Member


Joined: 27 Feb 2007
Posts: 691
Location: Earth

PostPosted: Fri Jun 22, 2012 2:16 am
Reply with quote

Dick, I find the analogy between IDCAMS EXPORT and DB2 IMAGECOPY to be the reason..

Everyone loves REPRO and EXPORT is seldom used. Similarly,
Everyone loves UNLOAD and IMAGECOPY is not that common.. icon_smile.gif
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Fri Jun 22, 2012 6:26 am
Reply with quote

dick scherrer wrote:
Hi Don,

I have no idea Why, but several places i've been are reluctant to work with the Image Copy data. . .

Thoughts? Might this just be an unwillingness to learn a "newtrick" icon_confused.gif

Thanks,

d
That may be true, but another possibility is that image copy unloads have some restrictions. For one, the unload has to be executed on the same DB2 subsystem that created the image copy. You also must have Select authority on the table in order to perform the unload, and the table has to exist in the catalog. So, unfortunately you cannot just grab an IC data set from Production and unload it in your test system.

Personally, I like using image copies in test environments. IC Backup and recovery is much faster than unload and load. And it opens up the possibility of using the Quiesce utility to manage recovery points.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 22, 2012 7:15 am
Reply with quote

Thanks guys i appreciate it icon_smile.gif

d
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 Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts How to load to DB2 with column level ... DB2 6
No new posts VB to VB copy - Full length reached SYNCSORT 8
No new posts Multiple table unload using INZUTILB DB2 2
Search our Forums:

Back to Top