Page 1 of 1

dsjob -lognewest error

Posted: Tue Sep 05, 2006 4:59 pm
by vardhan354
Hi,

i want to know the complete log report of a job,

if the log cleared by user in datastage director, is it possible to see the log report using this command.

dsjob -lognewest,


when i am trying to run it in unix the following error


Invalid arguments: dsjob -lognewest [-useid] <project> <job|jobid> [<event type>]
event type = INFO | WARNING | FATAL | REJECT | STARTED | RESET | BATCH

please help me .

Thanks in advance.

Posted: Tue Sep 05, 2006 6:59 pm
by ray.wurlod
You must specify at least a project name (since dsjob is not attached to any particular project) and a job name (for which you want the newest log entry).

Code: Select all

dsjob -lognewest projectname jobname

If you're connecting to a different host, then you also need the authentication information.
If the log has been cleared by a user in Director there will still be an entry in the log, reporting that it has been cleared.

dsjob log report

Posted: Wed Sep 06, 2006 10:23 am
by vardhan354
Hi ray,

i tried with this dsjob -lognewest projectname jobname it is giving a message newest id = 50, statuscode = 0.

please help me how to use these dsjob commands, i searched in forums

But i am not able to find.

Re: dsjob log report

Posted: Wed Sep 06, 2006 11:44 am
by ArndW
vardhan354 wrote:i tried with this dsjob -lognewest projectname jobname it is giving a message newest id = 50, statuscode = 0.
Try actually using the name of your project and the name of your job in the command; i.e. "dsjob -lognewest MyProject MyJob"

Re: dsjob log report

Posted: Wed Sep 06, 2006 12:18 pm
by vardhan354
Try actually using the name of your project and the name o ...[/quote]

Hi Andrw,

i tried with myproject and myjob only, i mean

myproject = datastage project name

myjob = datastage jobname in that project

Thanks

Re: dsjob log report

Posted: Wed Sep 06, 2006 12:21 pm
by chulett
vardhan354 wrote:i tried with this dsjob -lognewest projectname jobname it is giving a message newest id = 50, statuscode = 0.
That's what it is supposed to return.

Posted: Wed Sep 06, 2006 3:01 pm
by ArndW
Craig - thanks for the sanity check... of course you are correct!

Posted: Wed Sep 06, 2006 3:13 pm
by kaps
You need to run this command once before running the job to get the beginning id and once after the run to get the end id and then use both begin id and end id to get the log details using the following command

dsjob -logdetail $prm_project $prm_job $Bgn_Evnt_Id $End_Evnt_Id