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 TAPE VERIFY utility?? MrExtraordinare JCL & VSAM 3 Fri Dec 09, 2016 10:57 pm
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Best IMS DB Unload Utility jjabez10 IMS DB/DC 12 Thu Sep 22, 2016 11:15 pm
No new posts Any docs / links for isub- cobol comp... SRICOBSAS COBOL Programming 4 Fri Aug 26, 2016 2:35 pm
No new posts DB2 Unload format options Susanta DB2 2 Fri Aug 12, 2016 5:42 pm


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