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 Reformat clause in joinkeys sortcard ... Mounika Nemani DFSORT/ICETOOL 2 Thu May 31, 2018 5:35 pm
No new posts How to force a select query to abend neo4u DB2 7 Mon Apr 23, 2018 1:36 pm
No new posts SELECT TO MULIPLE OUTFIL speermb DFSORT/ICETOOL 5 Fri Mar 23, 2018 10:44 pm
No new posts Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm

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