Multi-Step Job Log Location

 7 Replies
 1 Subscribed to this topic
 27 Subscribed to this forum
Sort:
Author
Messages
Bill Brennenstuhl
Basic Member Send Private Message
Posts: 16
Basic Member

On a daily basis, someone goes into the Job Schedule, enters the appropriate username, and searches for a multi-step job.  At that time, they right click on the job and select View Job to open and copy information from the log.  I know where the individual .prt files are stored for each of the 198 steps for this job.  I need to know where the job log that is being displayed so I can automate this process.

Thanks in advance for any help.

Bob Canham
Veteran Member Send Private Message
Posts: 217
Veteran Member
The job logs are stored in $LAWDIR/system/joblog with a name of jobname.pid. the jobname is truncated on my system but I'm not sure if that is a AIX only constraint.
Bill Brennenstuhl
Basic Member Send Private Message
Posts: 16
Basic Member

Hi Bob, Thanks for the quick reply.  After looking at my directory structure I don't seem to have the joblog directory in my system.  See attached.  Any other ideas?

Attachments
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
Perhaps you just don't have permissions -- it should be under the system folder -- lsfprod\law\system\joblog\-files-
Greg Moeller
Veteran Member Send Private Message
Posts: 1498
Veteran Member
We are a Windows shop and I can verify what @Bob Canum says is not just an AIX oddity. All of our job names that have 8 characters in them appear as a 7 character joblog name followed by a period and the PID.
Bill Brennenstuhl
Basic Member Send Private Message
Posts: 16
Basic Member
Based on command I use in SYSCMD nodes, I do believe we are using Lynx.
Bill Brennenstuhl
Basic Member Send Private Message
Posts: 16
Basic Member

Checking with our host/security.  I'll update you with what I found.

Thanks again for your help.

Kwane McNeal
Veteran Member Send Private Message
Posts: 479
Veteran Member
So at one point it was jobname(7).pid. I don’t recall when it changed, but it is now slightly different. Format: jobname(left 7).jobnbr Job number is from the QUEUEDJOB table. So in (ba/k/mk)sh: you could use the following declarations: typeset -l jobname typeset -L7 jobname typeset -i jobnbr “${LAWDIR}/system/joblog/${jobname}.${jobnbr}”