ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Setting job run attrtibutes with Class

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Setting job run attrtibutes with Class

    Hi,

    I am struggling getting a job to run with a specific CLS within the subsystem?

    I have a JOBD Called COLLECT within it I have the Routing data set to COLLECT.


    Print text . . . . . . . . . . . *SYSVAL
    Routing data . . . . . . . . . . 'COLLECT'

    Request data or command . . . . 'COLLECT'
    I have a routing entry set in the subsystem description as below

    Opt Seq Nbr Program Library Compare Value Pos
    10 QCMD QSYS 'COLLECT' 1
    20 QCMD QSYS 'PROCESS' 1
    Routing entry sequence number . . . . . . . : 10
    Program . . . . . . . . . . . . . . . . . . : QCMD
    Library . . . . . . . . . . . . . . . . . : QSYS
    Class . . . . . . . . . . . . . . . . . . . : JT4ICLSA
    Library . . . . . . . . . . . . . . . . . : JT4I10
    Maximum active routing steps . . . . . . . : *NOMAX
    Pool identifier . . . . . . . . . . . . . . : 2
    Compare value . . . . . . . . . . . . . . . : 'COLLECT'

    Compare start position . . . . . . . . . . : 1
    Thread resources affinity:
    Group . . . . . . . . . . . . . . . . . . : *SYSVAL
    Level . . . . . . . . . . . . . . . . . . :
    Resources affinity group . . . . . . . . . : *NO
    I have a class for the routing entry as below

    Class . . . . . . . . . . . . . . . . . . . . . . : JT4ICLSA
    Library . . . . . . . . . . . . . . . . . . . . : JT4I10
    Run priority . . . . . . . . . . . . . . . . . . : 10
    Time slice in milliseconds . . . . . . . . . . . : 3000
    Eligible for purge . . . . . . . . . . . . . . . : *NO
    Default wait time in seconds . . . . . . . . . . : 3
    Maximum CPU time in milliseconds . . . . . . . . : *NOMAX
    Maximum temporary storage in megabytes . . . . . : *NOMAX
    Maximum threads . . . . . . . . . . . . . . . . . : *NOMAX
    Text . . . . . . . . . . . . . . . . . . . . . . :
    The job is submitted using the following command

    SBMJOB CMD(CALL PGM(JT4I006) PARM('098172652')) JOB(JT6_000) JOBD(COLLECT) USER(JT4IUSER)
    I would expect that having set all of the above up to see the jobs running with the attributes set in the class??? But when I look at the job I see the following.

    Job: JT6_000 User: JT4IUSER Number: 089357

    Run priority . . . . . . . . . . . . . . . . . . : 10
    Time slice in milliseconds . . . . . . . . . . . : 2000
    Eligible for purge . . . . . . . . . . . . . . . : *NO
    Default wait time in seconds . . . . . . . . . . : 30
    Maximum CPU time in milliseconds . . . . . . . . : *NOMAX
    CPU time used . . . . . . . . . . . . . . . . . : 7
    Maximum temporary storage in megabytes . . . . . : *NOMAX
    Temporary storage used . . . . . . . . . . . . : 4
    Maximum threads . . . . . . . . . . . . . . . . . : *NOMAX
    Threads . . . . . . . . . . . . . . . . . . . . : 1
    Thread resources affinity:
    Group . . . . . . . . . . . . . . . . . . . . . : *NOGROUP
    Level . . . . . . . . . . . . . . . . . . . . . : *NORMAL
    Resources affinity group . . . . . . . . . . . . : *NO
    Why is the job priority and time slice etc set to the wrong values???

    Chris...

  • #2
    Re: Setting job run attrtibutes with Class

    Try using *JOBD on the RTGDTA parameter of the SBMJOB command.

    Cheers,

    Emmanuel

    Comment


    • #3
      Re: Setting job run attrtibutes with Class

      That was the problem, thanks Emmanuel..

      Chris...

      Comment


      • #4
        Re: Setting job run attrtibutes with Class

        It's always the simple things that drive us to the edge of insanity... LOL

        Comment

        Working...
        X