Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 To get Non matching row after compari... vinu78 DB2 7 Fri Jan 05, 2018 5:43 pm
No new posts DB2 catalog tables Pavan kumar chauhan DB2 8 Thu Dec 21, 2017 6:32 pm
No new posts Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm
No new posts Selecting a row from multiple tables! Vignesh Sid DB2 2 Thu Oct 26, 2017 6:09 pm
No new posts Identify top 30 big tables or indexes... ashek15 DB2 0 Fri Jun 16, 2017 10:01 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us