Restarting Jobs after DataStage re-start

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
joffijoy
Participant
Posts: 22
Joined: Mon Jun 11, 2007 8:51 am

Restarting Jobs after DataStage re-start

Post by joffijoy »

Hi,

I have a requirement to re-start couple of Jobs when ever DataStage is recycled( stop and Start). Some of these jobs are infinite loop ( 1-99999) where in which jobs wait for a file to appear and process it and waits again. These are kept in a unix script file called '~/dsadm/Autostart/restart.sh' ( this file contain dsjob -run commands). I have a different set of jobs that are scheduled using cron ton run at specific time and days called '~/dsadm/Autostart/schedule.cron.file' .

1. Where should these 2 files be placed ( dsenv/.profile etc.) so that it get invoked after 'bin/uv -admin -start'?

2. What command should I use to invoke these (crontab <cron file name> etc. ) with an example

Thank you,
Joffi.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The `.profile' gets run by every DataStage user, so that would not be a good place. The logical location would be in your uv.rc file which is called as part of the startup - but is in a different location depending upon your OS - what Unix version are you running?

p.s. Welcome to DSXChange!
joffijoy
Participant
Posts: 22
Joined: Mon Jun 11, 2007 8:51 am

Post by joffijoy »

I am running in "AIX Version 5.3"
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I'm not certain as I'm currently not on an AIX system, but isn't the uv.rc installed in /etc/rc/rc.d directory?
joffijoy
Participant
Posts: 22
Joined: Mon Jun 11, 2007 8:51 am

Post by joffijoy »

ArndW wrote:I'm not certain as I'm currently not on an AIX system, but isn't the uv.rc installed in /etc/rc/rc.d directory? ...
What does uv.rc do? Thank you, Joffi.
joffijoy
Participant
Posts: 22
Joined: Mon Jun 11, 2007 8:51 am

Post by joffijoy »

ArndW wrote:I'm not certain as I'm currently not on an AIX system, but isn't the uv.rc installed in /etc/rc/rc.d directory? ...
ArndW, I have ds.rc in /etc. can I place my start script in ds.rc? at

....
exit 0
### REFER TO INSTALLATION NOTES ###
### PLACE USER DEFINED PROCESSES BELOW THIS MARKER ###
### DO NOT ALTER OR DELETE THIS BOTTOM MARKER. ###
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes. But beware that upgrading DataStage will overwrite ds.rc. You may be better to place your script in /etc/rc.d separately.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply