Page 1 of 1

How could I get current parameter value from unix command

Posted: Tue Sep 11, 2007 10:56 am
by meesolo
How could I get current parameter value from unix command? I tried to use dsjob -paraminfo but it returned only default value.


Thanks in advance

Posted: Tue Sep 11, 2007 12:03 pm
by chulett
By 'current' parameter value, you mean what? The value actually used the last time the job was run? Technically, the default value is the 'current' value.

Posted: Tue Sep 11, 2007 12:09 pm
by meesolo
Yes, I would like get last run parameter value.

Posted: Tue Sep 11, 2007 12:14 pm
by chulett
You would need to pull that information from the first (Starting Job) entry in the job's log.

Posted: Tue Sep 11, 2007 9:07 pm
by meesolo
How could I pull the information from the first entry in job log?

Posted: Wed Sep 12, 2007 12:48 am
by ray.wurlod
dsjob -logsum project job
Find and parse out the entry relating to the most recent job start. You can get the job start timestamp from dsjob -jobinfo project job

Posted: Wed Sep 12, 2007 12:59 am
by meesolo
I got it. Thank you ray and chulett

Posted: Wed Sep 12, 2007 6:02 am
by ray.wurlod
In that case please mark the thread as Resolved.

Posted: Thu Sep 13, 2007 6:27 am
by meesolo
I have got another problem. the job start timestamp from dsjob -jobinfo sometimes doesn't match the timestamp in dsjob -logsum .

For Example;

From dsjob -jobinfo command
Job Start Time : Tue Sep 11 17:44:432007

but, from dsjob -logsum command
5 STARTED Tue Sep 11 17:44:44 2007
Starting Job XXXX. (...)

Therefore, I cannot get the log detail

Posted: Thu Sep 13, 2007 2:42 pm
by ray.wurlod
Of course you can. The value from -jobinfo is only where -logsum starts; specify a later end timestamp with -logsum, then parse off the first entry.