Page 1 of 1

Value passed to a job parameter in the latest run

Posted: Tue Jun 19, 2007 7:05 am
by vigneshra
Hello,

We are developing a shell script in our project to capture the latest value for a job parameter. We tried the command dsjob -paraminfo but it just returns the default value set in parameters section. How to find the latest value of a parameter through dsjob or any other shell commands? Your help is appreciated. Thanks.

Posted: Tue Jun 19, 2007 7:11 am
by DSguru2B
You need to parse the value out of the very first entry of the log.
Before you run the job, get the event id by the "-lognewest" option. At the end of the job, get the "logdetail" for that particular (event Id + 1). This will be the very first entry of your run which will contain all the parameter values. Then using your scripting skills you can parse out the values.

Posted: Tue Jun 19, 2007 7:11 am
by chulett
From the command line, I don't believe you can get to that value directly. I believe you'll need to parse that from the 'Starting' log message of the most recent job log entries. :?

Posted: Tue Jun 19, 2007 7:14 am
by vigneshra
Ouch.......
I thought it would be just a simple command that would return the needed. Anyways, thanks a bunch to you.