PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 12/30/2022 3:02 PM by  Kwane McNeal
Multi-Step Job Log Location
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Bill Brennenstuhl
Business Systems Analyst
Private
Basic Member
(10 points)
Basic Member
Posts:4


Send Message:

--
12/28/2022 9:20 PM

    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
    Private
    Private
    Veteran Member
    (599 points)
    Veteran Member
    Posts:217


    Send Message:

    --
    12/28/2022 9:35 PM
    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
    Business Systems Analyst
    Private
    Basic Member
    (10 points)
    Basic Member
    Posts:4


    Send Message:

    --
    12/29/2022 3:35 PM

    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
    Private
    Private
    Veteran Member
    (4148 points)
    Veteran Member
    Posts:1482


    Send Message:

    --
    12/29/2022 3:46 PM
    Perhaps you just don't have permissions -- it should be under the system folder -- lsfprod\law\system\joblog\-files-
    Greg Moeller
    Private
    Private
    Veteran Member
    (4148 points)
    Veteran Member
    Posts:1482


    Send Message:

    --
    12/29/2022 5:11 PM
    We are <now> 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
    Business Systems Analyst
    Private
    Basic Member
    (10 points)
    Basic Member
    Posts:4


    Send Message:

    --
    12/29/2022 5:45 PM
    Based on command I use in SYSCMD nodes, I do believe we are using Lynx.
    Bill Brennenstuhl
    Business Systems Analyst
    Private
    Basic Member
    (10 points)
    Basic Member
    Posts:4


    Send Message:

    --
    12/30/2022 2:26 PM

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

    Thanks again for your help.

    Kwane McNeal
    President
    Private
    Veteran Member
    (1437 points)
    Veteran Member
    Posts:479


    Send Message:

    --
    12/30/2022 3:02 PM
    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}”
    You are not authorized to post a reply.