IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Using multiple tablespaces in an UNLOAD statement


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
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
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
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
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
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
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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Format data from multiple records usi... SYNCSORT 4
No new posts To Sort detail records in a file with... SYNCSORT 5
No new posts To Populate Trailer cnt in the file w... SYNCSORT 1
No new posts Integrate IBM High Perfomance Unload ... DB2 0
No new posts Multiple INSPECTS on a big size file COBOL Programming 6
Search our Forums:


Back to Top