Need Help in parallel Job design for below logic

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
HemaV
Participant
Posts: 63
Joined: Wed Jan 09, 2008 1:38 am
Location: Bangalore

Need Help in parallel Job design for below logic

Post by HemaV »

Hi All,

Since I'm new to Datastage unable to prepare design for the below one. Please help me:

For Query1 and Query2 I'm not sure how to design the parallel job.

Query1:
SELECT * FROM ABC WHERE XXX IN (SELECT XXX FROM ABC
where STAT = 'CLOSE' AND FLAG = 0 AND TRUNC((sysDate-CURRENTDATE) / 365) >= 2
MINUS
SELECT XXX FROM DEF WHERE LEVEL <> 0 )

Query2:
select * from ABC WHERE XXX IN (SELECT XXX FROM ABC
where STAT='CLOSE' AND FLAG = 0 AND TRUNC((sysDate-CURRENTDATE) / 365) >= 2
MINUS
SELECT XXX FROM FGH WHERE TYPE in ('ggg','hhh')
)

Thanks in Advance
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why not just use these statements as user-defined SQL?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
deeplind07
Participant
Posts: 31
Joined: Mon Jun 28, 2010 5:15 am
Location: pune

Post by deeplind07 »

As Ray suggested it is preferable to use user defined sql when fetching data from any database using stages like ODBC,Oracle etc.
your case is a perfect example for such requirements
Post Reply