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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts How to write Specific Fields from Mul... Padhu SYNCSORT 6 Thu Jul 06, 2017 10:26 am
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
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. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm


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