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
 

 

Select clause in the unload utility

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

New User


Joined: 30 Aug 2007
Posts: 5
Location: Belgium

PostPosted: Mon Sep 17, 2007 3:28 pm    Post subject: Select clause in the unload utility
Reply with quote

Hi,

I want unloaded a table but i want to specified a select clause in the unload utility.

my sysin is :
Code:
 
UNLOAD                                         
TABLESPACE DNNDB.SNNDB019                     
FROM TABLE NNDBD.DEU02 (CLIENT,DBD)           
WHEN (                                         
SELECT B.CLIENT, B.DBD                         
FROM NNDBD.DBEURO_CLIDBD_DEV A                 
     RIGHT OUTER JOIN NNDBD.DEU02_CLIDBD_DEV B
     ON CODE = CLIENT AND B.DBD = A.DBD       
WHERE A.DBD IS NULL                           
GROUP BY B.CLIENT, B.DBD                       
)                                             


I have an error => INVALID KEYWORD - B.CLIENT
DBEURO_CLIDBD_DEV and DEU02CLIDBD_DEV are views.

it's possible with join in my unload?

Thanks
Back to top
View user's profile Send private message

Farrauto

New User


Joined: 30 Aug 2007
Posts: 5
Location: Belgium

PostPosted: Mon Sep 17, 2007 6:05 pm    Post subject: Reply to: Prob unload db2
Reply with quote

RESOLVED

I have used DSNTIAUL and you can make a select from your table (you want unloaded) and all is right.

THANK YOU :-)
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Mon Sep 17, 2007 6:24 pm    Post subject:
Reply with quote

Good news....Thanks for the follow up.
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 DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts HLIST Utility In Batch Virendra Shambharkar TSO/ISPF 4 Fri Apr 07, 2017 3:38 pm
This topic is locked: you cannot edit posts or make replies. Need help in estimating space of unlo... ashek15 IMS DB/DC 12 Fri Apr 07, 2017 5:11 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am


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