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

How to unload data from db2 table into a dataset


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

New User


Joined: 01 Apr 2008
Posts: 4
Location: Mysore

PostPosted: Fri Jan 30, 2009 12:14 pm
Reply with quote

Hi,

Please help me with a JCL which can be used for unloading data from a db2 table into a dataset(as a backup).

And also a JCL which can be used for loading back the data into the db2 table from the backup created earlier.

Rahul icon_smile.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jan 30, 2009 12:16 pm
Reply with quote

The best people to ask is your DB2 people, as they will have the standard JCL along with all of the site specific details.

Also, the DBA's may also have a specific product to perform backup / recovery processing which is faster and better than standard utilities..
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 Jan 30, 2009 12:17 pm
Reply with quote

Hello,

Suggest you talk with the dbas and have them show you how to perform and imagecopy backup and how to reload from the backup into the table.

Not everyone has the permissions granted to backup/restore. . .
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Fri Jan 30, 2009 12:40 pm
Reply with quote

Rahul,

Use DSNTIUL utility.
Back to top
View user's profile Send private message
Itanium

Active User


Joined: 22 Jan 2006
Posts: 114
Location: India

PostPosted: Fri Jan 30, 2009 1:04 pm
Reply with quote

your DBA's are the right people to contact. There might be standards specific to your shop, they should be having model JCLs.

Thanks,
Itanium
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Fri Jan 30, 2009 2:17 pm
Reply with quote

Rahul,

I can suggest one thing. Search with DSNTIUL against production JCLs and PROCs. Somewhere definately you will find the solution for your problem.

Still If you dont find then I will provide the JCLs to You.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Fri Jan 30, 2009 2:21 pm
Reply with quote

Or you can have a look at this related topic.

www.ibmmainframes.com/viewtopic.php?t=35857
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 Store the data for fixed length COBOL Programming 1
No new posts Load new table with Old unload - DB2 DB2 6
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
Search our Forums:

Back to Top