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
 
Using multiple tablespaces in an UNLOAD statement

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

New User


Joined: 10 Jan 2007
Posts: 5
Location: India

PostPosted: Thu Jan 25, 2007 2:38 pm    Post subject: Using multiple tablespaces in an UNLOAD statement
Reply with quote

I'm planning to use INZUTILB to unload data from our databases for a requirement. In one such case, I need to join two tables that reside on separate tablespaces. Can we use multiple tablespaces in an UNLOAD statement?
Back to top
View user's profile Send private message

Garpen

New User


Joined: 03 Jan 2007
Posts: 14
Location: Sweden

PostPosted: Mon Jan 29, 2007 1:54 pm    Post subject: Re: Using multiple tablespaces in an UNLOAD statement
Reply with quote

Hi
You can use the old uNLOAD-pgm, DSNTIAUL and run the UNLOAD with a view.


//UNLOAD EXEC PGM=IKJEFT1B,DYNAMNBR=20
//SYSTSPRT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(ssid)
RUN PROGRAM(DSNTIAUL) -
LIB('ssid.RUNLIB.LOAD') PARMS('SQL')
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSREC00 DD SPACE=(CYL,(10,10),RLSE),DISP=(,CATLG,DELETE),
// DSN=unloadfile
//SYSPUNCH DD SPACE=(CYL,(10,10),RLSE),DISP=(,CATLG,DELETE),
// DSN=syspunchfile
//SYSIN DD *
SELECT * FROM view;
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Mon Jan 29, 2007 5:23 pm    Post subject:
Reply with quote

I hope until you are connecting to same Db2 sub system no problem should exists..

Regards,
JR
Back to top
View user's profile Send private message
Garpen

New User


Joined: 03 Jan 2007
Posts: 14
Location: Sweden

PostPosted: Mon Jan 29, 2007 5:26 pm    Post subject: Re: Using multiple tablespaces in an UNLOAD statement
Reply with quote

I assumed that the tablespaces exists in the same subsystem icon_question.gif
Back to top
View user's profile Send private message
prathap.murthy

New User


Joined: 10 Jan 2007
Posts: 5
Location: India

PostPosted: Tue Jan 30, 2007 9:23 am    Post subject: Re: Using multiple tablespaces in an UNLOAD statement
Reply with quote

Yes... both the tablespaces exist within the same subsystem. Thanks for your time! icon_biggrin.gif
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 ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
No new posts Repeat part of record multiple times Learncoholic DFSORT/ICETOOL 4 Tue Aug 29, 2017 11:33 am
No new posts WER268A OUTREC STATEMENT : SYNTAX E... frozenblood87 SYNCSORT 12 Sat Aug 26, 2017 9:45 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am

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