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
 
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 Change NULL indicator in UNLOAD utility Khadhar Basha DB2 2 Fri Dec 15, 2017 3:01 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts NULLFILE on ICEGENER Utility Ashishpanpaliya DFSORT/ICETOOL 5 Wed Nov 08, 2017 10:45 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am

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