Log Path to see the Job LOG - not thru Director!!!

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Titto
Participant
Posts: 148
Joined: Tue Jun 21, 2005 7:49 am

Log Path to see the Job LOG - not thru Director!!!

Post by Titto »

Hi,

My Director is not able to show a particular job log , may be it is too big to load.
Is there a way to look at the Job Log in Unix? , not thru Director.
if so where do i look for job log in Ascential path?

Thanks
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The job log is in a DataStage table and is not a sequential file. You can use the UNIX command "dsjob -log <project> <job>" to get this information listed to standard output and could redirect that to a text file.

Addendum - I should have read the whole post before replying, after seeing Rays's response I realize that I answered a question that really wasn't asked.
Last edited by ArndW on Wed May 28, 2008 10:58 am, edited 1 time in total.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I suspect you are just being impatient. To retrieve the job log, a request of the form SELECT * FROM RT_LOGnnn WHERE ... ORDER BY 1 must be issued against the Repository database. If there are many entries in the log table, sorting the report will take quite some time. No rows can be returned until the sorting has been completed. That's why we endeavour to keep logs small.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

ArndW wrote:The job log is in a DataStage table and is not a sequential file. You can use the UNIX command "dsjob -log <project> <job>" to get this information listed to standard output and could redi ...
How can we get the log info with Windows as OS. I am trying to view the log other than Director.

thanks
Nivas
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The "dsjob" command is the same on Windows and UNIX. It can be called from either the server or the client.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Same answer for Windows.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

chulett wrote:Same answer for Windows.
I am trying to find how do I read from output stream to a file in DOS. The following I am getting.

C:\ASCENT~1\DATAST~1\Engine\bin>dsjob -log HSNOUB92Warehouse BatchHSNOCHCWarehou
se1
Enter message text, terminating with Ctrl-d
Nivas^D

Message read.

After this How do read the message or log to a file ?

thanks
Nivas
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

"dsjob -log" inserts a record into the log, you are looking for "dsjob -logsum"
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

ArndW wrote:"dsjob -log" inserts a record into the log, you are looking for "dsjob -logsum" ...
Excellent.

Thanks
Nivas
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You'll need to redirect the output for the 'to a file' part, which means adding " > filenname" or perhaps " >> filename" to the end of the command.
-craig

"You can never have too many knives" -- Logan Nine Fingers
nivas
Participant
Posts: 117
Joined: Sun Mar 21, 2004 4:40 pm

Post by nivas »

Thank you very much for all.
Nivas
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

If that's a solution 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.
Post Reply