Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to unload tables without using image copies ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
venuhunev

New User


Joined: 26 May 2007
Posts: 70
Location: chennai

PostPosted: Mon Jan 14, 2008 4:11 pm    Post subject: How to unload tables without using image copies ?
Reply with quote

Hi,

I want to unload the prod tables and load it into my test region. Since i dont have RACF for the image copies, I need to take it directly from the prod. I can use import/export. But the thing is i need to execute in a batch job. Any pointers ?
Back to top
View user's profile Send private message

acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Mon Jan 14, 2008 4:14 pm    Post subject:
Reply with quote

using DSNTIAUL?
Back to top
View user's profile Send private message
abhishekmdwivedi

New User


Joined: 22 Aug 2006
Posts: 95
Location: india

PostPosted: Mon Jan 14, 2008 4:30 pm    Post subject: Reply to: How to unload tables without using image copies ?
Reply with quote

Try searching forum on key "UNLOAD TABLE" and will find your answer.
Back to top
View user's profile Send private message
venuhunev

New User


Joined: 26 May 2007
Posts: 70
Location: chennai

PostPosted: Mon Jan 14, 2008 4:38 pm    Post subject:
Reply with quote

Ya . using DSNTIAUL icon_smile.gif
Back to top
View user's profile Send private message
stodolas

Active Member


Joined: 13 Jun 2007
Posts: 632
Location: Wisconsin

PostPosted: Mon Jan 14, 2008 7:28 pm    Post subject:
Reply with quote

You will need to modify things slightly...

Unload from prod:

Code:

//S010     EXEC PGM=IKJEFT1B,DYNAMNBR=20                         
//STEPLIB  DD DSN=DB2.TEST.SDSNLOAD,DISP=SHR                     
//SYSIN    DD *                                                   
//     SELECT * FROM OWNER.TABLE WITH CS;                       
//                                                               
//SYSREC00 DD DSN=OUTPUT.FILE,DISP=(NEW,CATLG,DELETE),
        UNIT=DISK,SPACE=(TRK(1,1),RLSE)
//SYSPUNCH DD DSN=LOAD.CARD.OUTPUT,DISP=(,CATLG,DELETE),
        UNIT=DISK,SPACE=(TRK,(1,1),RLSE)                       
//SYSTSIN  DD DSN=DB2A.DBA.SYSIN(DSNTIAUL),DISP=SHR               
//SYSTSPRT DD SYSOUT=*                                           
//SYSPRINT DD SYSOUT=*                                           
//SYSUDUMP DD SYSOUT=*                                           


Then modify the SYSPUNCH to have the correct OWNER.TABLE. Make sure the destination table is empty (for the options I have on my step).

Code:

//S010     EXEC PGM=DSNUTILB,REGION=8M,PARM='DB2T,LOADIBM'   
//STEPLIB  DD DSN=DB2.TEST.SDSNLOAD,DISP=SHR                 
//SYSREC00 DD DISP=SHR,DSN=OUTPUT.FILE                 
//SYSIN    DD DISP=SHR,DSN=LOAD.CARD.OUTPUT         
//*                                                           
//SYSUT1   DD UNIT=SYSDA,SPACE=(CYL,(100,100),RLSE)           
//SYSMAP   DD SPACE=(CYL,(100,100),,,ROUND),UNIT=(SORT,6)     
//$ORTPARM DD *                                               
DYNALLOC                                                     
/*                                                           
//SORTOUT  DD UNIT=SYSDA,SPACE=(CYL,(100,100),RLSE)           
//SYSPRINT DD SYSOUT=*                                       
//UTPRINT  DD SYSOUT=*                                       
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us