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
 

 

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 Data replication from multiple Db2 ta... kishpra DB2 1 Mon Mar 27, 2017 9:58 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm


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