If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Load and Unload

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-11-10, 22:27
tdnj tdnj is offline
Registered User
 
Join Date: Oct 2010
Posts: 4
DB2 Load and Unload

I haven't used DB2 load and unload utility before. I have a JCL for table unload. But I am not that familiar with the parameters used. I plan to use the following JCL

//Step01 EXEC PGM=INZUTILB
Then a Steplib,followed by SYSPUNCH DD DSN = xxxxx.xxxxx.xxxxx, disp=(new, catlg)

Then SYSIN DD *
UNLOAD TABLESPACE table space name
DB2 YES
SELECT * from tablename
WITH UR
FORMAT DSNTIAUL
LOADDDN SYSPUNCH LOADOPT(RESUME NO REPLACE)
OUTDDN (SYSREC00)

/*
//SYSREC00 DD DSN = outputfile name to be created
//**************************
I would be thankful if some one explain in brief the format statement, the meaning of ""UR" in the select satement. I also see the QUIESCE YES QUIESCECAT NO LOCK No etc. What other FORMATS are associated with Load utility. A good link that explains load/unload tables in DB2 will also be beneficial.
Reply With Quote
  #2 (permalink)  
Old 10-12-10, 01:27
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The WITH UR is standard SQL that specifies the isolation level (Uncommitted Read). This is explained in the SQL Reference manual.

The load and unload parms are explained in the DB2 z/OS Utilities Reference manual, which you can download from the IBM website (sorry, don't have a link handy, but you can google it).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 10-12-10, 05:44
tdnj tdnj is offline
Registered User
 
Join Date: Oct 2010
Posts: 4
DB2 Load and Unload

Thank you Markus.



TDNJ
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On