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 

can we access two subsystems in one single query

 
Post new topic   This topic is locked: you cannot edit posts or make replies.   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
hibusalim
Beginner


Joined: 02 Sep 2004
Posts: 6
Topics: 4

PostPosted: Wed Jan 12, 2005 7:50 am    Post subject: can we access two subsystems in one single query Reply with quote

hi,

can anyone help me in resolving this query..

proc sql;
create table a1q3 as
select
a.taxid_no,
q3.seqno,
q3.cdist
from CENSUSFL a, q3seg q3
where a.taxid_no = q3.empno
order by a.taxid_no, q3.seqno;
quit;
run;

proc sql;
create table q3top as
select
aq1.taxid_no,
aq1.seqno,
aq1.cdist
from a1q3 aq1
where
aq1.seqno = (select max(aq2.seqno)
from a1q3 aq2
where aq2.taxid_no = aq1.taxid_no)
order by aq1.taxid_no;
quit;
run;




This is a DB2 query..

Thanks,
Hibu Salim
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12372
Topics: 75
Location: San Jose

PostPosted: Wed Jan 12, 2005 8:31 am    Post subject: Reply with quote

Hibusalim,

Why are you opening the seperate topics for the same question? I have deleted your duplicate post an hour ago and you once again post the same question. Your question has been answered . Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=3504

If you continue to do this you will loose your privileges of posting on this board.

I am locking this topic

Thanks

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.   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