dsjob -lognewest error

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
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

dsjob -lognewest error

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

Post 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.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

dsjob log report

Post 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.
ETL
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Re: dsjob log report

Post 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"
vardhan354
Participant
Posts: 76
Joined: Wed Jan 25, 2006 6:42 pm

Re: dsjob log report

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

Re: dsjob log report

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

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Craig - thanks for the sanity check... of course you are correct!
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post 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
Post Reply