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 

Quering on Imagecopies

 
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 Jul 22, 2008 3:32 pm    Post subject: Quering on Imagecopies Reply with quote

Hi all,

I wanna refresh the test environment with the data from 3 tables.
As the tables are huge I am planning to take imagecopies of three tables.
After that Can I run the following qurey on Image copies, will it run or not, if not is there any best way to do that. As this query is taking lot of time to unload the data from prod.

Pls suggest me.
Thanks in advance.

SELECT A.*
FROM
Table1 A,
Table2 B ,
Table 3 C
WHERE A.RID = B.RID
AND B.RDNDTE = C.RDNDTE
AND DATE(C.RDNDTE) >= CURRENT DATE - 5 YEARS;
_________________
Satya
Back to top
View user's profile Send private message
CraigG
Intermediate


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

PostPosted: Tue Jul 22, 2008 6:41 pm    Post subject: Reply with quote

Queries don't work on files (even imagecopies) they only work on DATABASES!
Back to top
View user's profile Send private message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Tue Jul 22, 2008 6:59 pm    Post subject: Reply with quote

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


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

PostPosted: Thu Jul 24, 2008 9:08 am    Post subject: Reply with quote

CraigG

Techinically speaking, you are right. Queries are run on DB objects. However, the UNLOAD utility provides query-like access to image copies via the FROM TABLE and WHEN specs. The access is obviously single table only (no joins) so it would probably not help the op in this case.
Back to top
View user's profile Send private message
satyenderd
Beginner


Joined: 26 Aug 2005
Posts: 144
Topics: 73

PostPosted: Thu Jul 24, 2008 11:12 am    Post subject: Reply with quote

Thanks Sharon.
_________________
Satya
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Jul 24, 2008 4:44 pm    Post subject: Reply with quote

jsharon1248,

nice bit of 'oh by the way' info...
_________________
Dick Brenholtz
American living in Varel, Germany
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