HP3000-L Archives

March 2000, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"VANCE,JEFF (HP-Cupertino,ex1)" <[log in to unmask]>
Reply To:
VANCE,JEFF (HP-Cupertino,ex1)
Date:
Mon, 6 Mar 2000 14:15:11 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
> I'm looking for a command or a UDC that will execute or
> search for any id's that have been created as manager.sys & operator.sys.

If by "IDs" you mean all jobs and sessions that are logged on then this will

work on 6.0 and later (it can be improved, but provides the basic approach):

   setvar j JOBCNT("manager.sys", ids) + JOBCNT("operator.sys",ids1)
   setvar ids ids + ids1
   echo There are !j jobs/sessions logged on as MANAGER.SYS or OPERATOR.SYS
   echo
   echo The job/session numbers follow:
   setvar i 0
   while setvar(i,i+1) <= j do
      echo    #![word(ids,,i)]
   endwhile

regards,
Jeff Vance, CSY

ATOM RSS1 RSS2