MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unload the data from imagecopies using joins or sub-queires.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Tue Aug 05, 2008 11:31 am    Post subject: Unload the data from imagecopies using joins or sub-queires. Reply with quote

Hi all,

The following is the scenario.

I have to unload the data from the production. But as I am not supposed to hit a query in production, is it is possible to write a sub-query or join on Imagecopies to unload the data.

for example:

SELECT *
FROM
TABLE1
WHERE RDNDTE IN
(SELECT
RDNDTE
FROM
TABLE2
WHERE DATE(RDNDTE) >= CURRENT DATE - 5 YEARS);


Please let me know, if there are any chances of executing a query on this kind of scenario.

Thanks in advance to all.
_________________
Satya
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Wed Aug 06, 2008 11:38 am    Post subject: Reply with quote

The UNLOAD from image copy supports limited query-like functionality via the WHEN clause in the FROM-TABLE spec. The WHEN is not processed by the optimizer. The UNLOAD utility will not allow a sub-select in the FROM-TABLE spec.
Back to top
View user's profile Send private message
CraigG
Intermediate


Joined: 02 May 2007
Posts: 202
Topics: 0
Location: Viginia, USA

PostPosted: Wed Aug 06, 2008 11:56 am    Post subject: Reply with quote

Are you expecting an answer more to your liking from this site.
Back to top
View user's profile Send private message
jsharon1248
Intermediate


Joined: 08 Aug 2007
Posts: 291
Topics: 2
Location: Chicago

PostPosted: Wed Aug 06, 2008 11:59 am    Post subject: Reply with quote

CraigG

How did my response compare to the other site? Better or worse?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group