Implementation Diffferences Shell Script vs Datastage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
vskr72
Premium Member
Premium Member
Posts: 128
Joined: Wed Apr 28, 2004 9:36 pm

Implementation Diffferences Shell Script vs Datastage

Post by vskr72 »

We have a requirement to do the following in our project:
- Poll for file. If it does not come by X secs, then send a DList , then continue to poll. If it does not come by Y secs send an email to different Dlist and continue to poll. If it does not come by Z secs, then continue to poll and exit.
- Once file received, then trigger a series of jobs.
- File archive/ backup
- finally exit

Is it best to do this in Datastage (is it possble at all) or thru a script. Thank you
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What is "best"? You can do it either way (a job (sequence) or a script). What's best for you? What will be easier to maintain (for example parameterising the wait periods)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Re: Implementation Diffferences Shell Script vs Datastage

Post by SURA »

I would prefer to do it in DS.


DS User
PaulVL
Premium Member
Premium Member
Posts: 1315
Joined: Fri Dec 17, 2010 4:36 pm

Post by PaulVL »

Are you running in a GRID environment? If so, I would not submit a grid job and have it remain active for X amount of time just waiting around for the file.

Having a polling process (could be on a remote server) do the sleep and poll.
executing the dsjob -run from that script would be my vote.

You are going to be expending far more system resources by executing the polling in the datastage environment / job rather than the shell script.
Post Reply