sequencing jobs through UNIX

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
sainath
Premium Member
Premium Member
Posts: 138
Joined: Fri Nov 19, 2004 3:57 pm

sequencing jobs through UNIX

Post by sainath »

HI
i want to know how i can sequence and run the server jobs through UNIX.
thks
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And yet you've marked your post as having a Windows server installation. :?

Are you looking for something other than the dsjob command? If so - details man, details.
-craig

"You can never have too many knives" -- Logan Nine Fingers
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Get all the job names in a file, in the order they are supposed to be run and then you can do something like

Code: Select all

cat $joblist | while read job_names
do
   dsjob -run -status $PROJ $job_names
done
   
This is very very, basic. Just to give you an idea. You will need much more commands and logic if you want to incorporate restartability and creating job status etc.
Last edited by DSguru2B on Tue Jul 11, 2006 7:39 am, edited 1 time in total.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

cron running dsjob (via rsh)?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
sainath
Premium Member
Premium Member
Posts: 138
Joined: Fri Nov 19, 2004 3:57 pm

Post by sainath »

Hi
I am starting a new project and they told that they use only unix to sequence and run the jobs.I dont know why they are not using Datastage job sequence or any third party tools(Appworx).I want to know where i can find more information about this like study material ,Docs .
Thank you very much for your reply
sai
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

its more of mastering unix than mastering datastage.

Datastage has only few commands to be invoked to run, stop or reset a job.

however you can find the datastage commands in installation docs.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Its all about design. You need to put down the psudo-code on paper. Then as mentioned by Krazykoolrohit, its just a mastery of unix, which you can master within a few days. Then its just a matter of translating that psudo-code into unix code.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

... and being granted permission to schedule on UNIX (cron and at) :twisted:
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Yes very important. Just recently Ray mentioned that the user id must be entered in cron.allow and at.allow. That is, offcourse, if you are using these as schedulers.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply