Report of dist groups associated with jobs

Sort:
You are not authorized to post a reply.
Author
Messages
Margie Gyurisin
Veteran Member
Posts: 538
Veteran Member

    Is there a way to see what distribution groups may be associated with job(s) via a report or dump per user or  job name?

     

    I know I can use jobprmprt to show parameters but I'd like to know if any of the jobs are automatically distributed.

     

    I hope that is clear.

     

    Thanks for your help.

    pbelsky
    Veteran Member
    Posts: 80
    Veteran Member

      Hi Margie, look at the value of DSTGRP in the JOBSTEPRPT table in GEN. The GEN table DSTGRPUSER will show you the users in the dist group.

      John Henley
      Senior Member
      Posts: 3348
      Senior Member
        from GEN database,
        SELECT JOB.JOBNAME, JOB.USERNAME, JOB.DESCRIPTION, JST.TOKEN, JSR.DSTGRP, DGP.DESCRIPTION, DGU.USERNAME
        FROM JOBSTEPRPT JSR
        INNER JOIN DSTGRP DGP
        ON DGP.DSTGRP = JSR.DSTGRP
        AND JSR.DSTGRP <> ''
        LEFT OUTER JOIN DSTGRPUSER DGU
        ON DGU.DSTGRP = DGP.DSTGRP
        INNER JOIN JOBSTEP JST
        ON JST.USERNAME = JSR.USERNAME
        AND JST.JOBNAME = JSR.JOBNAME
        AND JST.STEPKEY = JSR.STEPKEY
        INNER JOIN JOB
        ON JOB.USERNAME = JST.USERNAME
        AND JOB.JOBNAME = JST.JOBNAME
        Thanks for using the LawsonGuru.com forums!
        John
        You are not authorized to post a reply.