SHOWJOB
#
# Setup each account that you don't want to abort
#         setvar acct# "acct name"
#
setvar acct0 "VESOFT"
repeat
   PAUSE 3
   setvar X 0
   SETVAR ABORT_JOB 1
   while BOUND(ACCT!X)
      ERRCLEAR
      CONTINUE
      SETVAR TACCT "![RJOB.ACCOUNT]"
      IF CIERROR = 0
         IF "![ACCT!X]" = "!TACCT"
            SETVAR ABORT_JOB 0
         ENDIF
      ENDIF
      SETVAR X X + 1
   ENDWHILE
   ERRCLEAR
   CONTINUE
   setvar jnbr strwrite("![rjob.fmtjob]")
   IF CIERROR = 0
      IF !ABORT_JOB = 1
         echo ABORTING -----(!JNBR)
         CONTINUE
         ABORTJOB !JNBR
      ELSE
         ECHO DONT ABORT ME --(!jnbr)
      ENDIF
   ENDIF
forjobs @,@.@-!hpjobname,!hpuser.!hpaccount
SHOWJOB