Executing a sql before ODBC Stage

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
asnagaraj
Participant
Posts: 26
Joined: Wed Jun 25, 2003 12:41 am

Executing a sql before ODBC Stage

Post by asnagaraj »

I need to fetch only around 1000 records from a table that has more than a lakh records.i fetch data from table using ODBC stage.How can i write a prestage sql to achieve my requirement.

Thanks,
Naga.

Programmer Analyst,
Cognizant,
Chennai.
raviyn
Participant
Posts: 57
Joined: Mon Dec 16, 2002 6:03 am

Post by raviyn »

If it is for testing u can use while running the job stop after 1000 rows.
asnagaraj
Participant
Posts: 26
Joined: Wed Jun 25, 2003 12:41 am

Post by asnagaraj »

Many thanks for that. :)

Programmer Analyst,
Cognizant,
Chennai.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If it's a production requirement, use Oracle to isolate the first 1000 rows, for example using ROWNUM (or whatever this is called in Oracle), for example WHERE ROWNUM <= 1000
Post Reply