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
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?
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. ###