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.
Value passed to a job parameter in the latest run
Moderators: chulett, rschirm, roy
Value passed to a job parameter in the latest run
Vignesh.
"A conclusion is simply the place where you got tired of thinking."
"A conclusion is simply the place where you got tired of thinking."
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.
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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.