How could I get current parameter value from unix command

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
meesolo
Participant
Posts: 5
Joined: Tue Jun 27, 2006 1:22 am

How could I get current parameter value from unix command

Post 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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
meesolo
Participant
Posts: 5
Joined: Tue Jun 27, 2006 1:22 am

Post by meesolo »

Yes, I would like get last run parameter value.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You would need to pull that information from the first (Starting Job) entry in the job's log.
-craig

"You can never have too many knives" -- Logan Nine Fingers
meesolo
Participant
Posts: 5
Joined: Tue Jun 27, 2006 1:22 am

Post by meesolo »

How could I pull the information from the first entry in job log?
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
meesolo
Participant
Posts: 5
Joined: Tue Jun 27, 2006 1:22 am

Post by meesolo »

I got it. Thank you ray and chulett
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

In that case please mark the thread as Resolved.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
meesolo
Participant
Posts: 5
Joined: Tue Jun 27, 2006 1:22 am

Post 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
ray.wurlod
Participant
Posts: 54595
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply