!JOBTBL.DEF [104] - JOBTBL.SYS definitions
!-------------------.-------------------.-------------------.-------------------.
!EDIT HISTORY
! VEDIT=104
! Note: history reformatted 9-Feb-17
! [104] 19-Nov-20 / jdm / Add JOBTYP_LICNODE (6.5.1693++)
! [103] 10-Mar-15 / jdm / Add JCBCMD_MSGBOX
! [102] 09-Sep-08 / jdm / Add JOBTYP_CHILD
! [101] 15-Jul-07 / jdm / Add JOBTYP_ATS, JOBTBL_VERSION
! [100] 22-Feb-07 / jdm / Split out from qdef.bsi
!-------------------.-------------------.-------------------.-------------------.

! *** JOBTBL_VERSION - use this to see if prog compatible with jobtbl.sys
    define JOBTBL_VERSION = 116

! *** JOBTYP symbols (JCB'JOBTYP)

    define JOBTYP_FREE      = &h0000    ! free rec
    define JOBTYP_ACTIVE    = &h0001    ! active job
    define JOBTYP_ALLOC     = &h0002    ! allocated via trmdef
    define JOBTYP_CHILD     = &h0004    ! [102] child job
    define JOBTYP_LICNODE   = &h0008    ! [104] job using a node license
    define JOBTYP_HEX       = &h0010    ! hex mode
    define JOBTYP_SLAVE     = &h0200    ! background task
    define JOBTYP_PSHELL    = &h0400	! pshell controller
    define JOBTYP_DISCON    = &h0800    ! job disconnected
    define JOBTYP_ATESRV    = &h1000	! ATE licensed by server
    define JOBTYP_ATE       = &h2000    ! any kind of ATE
    define JOBTYP_ATS       = &h4000    ! ATS-serviced job
    define JOBTYP_EOF       = &h8000    ! eof

! *** JOBSTS symbols (JCB'JOBSTS)

    define JOBSTS_MON       = 1     ! job at monitor level
    define JOBSTS_SUS       = 2     ! job suspended

! *** JCBACCESS symbols  (use in MIAMEX,MX_xxxxJCB)

    define JCBACCESS_NOLOCK = 0     ! no locking on read/write
    define JCBACCESS_LOCK   = 1     ! lock prior to read, unlock
                                    ! after write (locking rec 0
                                    ! locks entire file!!!)

! *** JCBCMD symbols (JCB'IJCCMD)

    define JCBCMD_SIGINT    = 1     ! KILL (Same as ^C / SIGINT)
    define JCBCMD_SIGTERM   = 2     ! SHUTDOWN	(Same as SIGTERM)
    define JCBCMD_MSG       = 3     ! Message
    define JCBCMD_AYT       = 4     ! Are You There?
    define JCBCMD_SHOW      = 5     ! Show yourself
    define JCBCMD_MSGBOT    = 6	    ! Msg to bottom status line
    define JCBCMD_MSGTOP    = 7	    ! Msg to top status line
    define JCBCMD_FORCE     = 8	    ! Force command string
    define JCBCMD_MSGBOX    = 9     ! [103] Msg in modal msgbox
    
! *** JCBSTS symbols (JCB'IJCSTS)

    define JCBSTS_NORMAL    = 0     ! normal
    define JCBSTS_ACK       = 1     ! positive ack
    define JCBSTS_NAK       = 2     ! negative ack

! *** JCBMSG symbols (JCB'IJCMSG)

    define JCBMSG_NONE      = 0     ! no message
    define JCBMSG_BUFSTR    = 1     ! null term. str in JCB'IJCBUF
