Rotine to write Job Log to File.

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
Basavan
Participant
Posts: 5
Joined: Mon Jul 11, 2005 9:23 am

Rotine to write Job Log to File.

Post by Basavan »

Hi Guru's ,

I Have a req where i need a routine which can read jobname,directory path,start timestamp,End timestamp as Parameters.

This Routine should run monthly and capture all job log for past month(between the timestamp parameters) and write into a file and zip the file and also clear the log that was captured.


Can some body post if you have similar code that works for this req.

Thank You Very Much....!
Last edited by Basavan on Tue Apr 03, 2007 9:11 am, edited 1 time in total.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Routines don't run - jobs run. Your best option is to use the dsjob program inside a unix shell script.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Basavan
Participant
Posts: 5
Joined: Mon Jul 11, 2005 9:23 am

Post by Basavan »

[quote="kcbland"]Routines don't run - jobs run. Your best option is to use the dsjob program inside a unix shell script. ...[/quote]


Thanks for quick responce Ken,

I could call that routine from sequencer right and shedule that sequencer job monthly.


Thanks Again
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

You could, but why re-invent the wheel? Have you even looked at using dsjob?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Basavan
Participant
Posts: 5
Joined: Mon Jul 11, 2005 9:23 am

Post by Basavan »

[quote="kcbland"]You could, but why re-invent the wheel? Have you even looked at using dsjob? ...[/quote]


Not Yet Ken....!

where could i find all diffrent options for dsjob.



Thank you.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Search here! :lol: Or, go to the DS Engine/bin and type dsjob, you can see all of the options. There's always the manuals under your Start button, there's lots of detail on the command line program there as well.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
Post Reply