Subject: | |
From: | |
Reply To: | VANCE,JEFF (HP-Cupertino,ex1) |
Date: | Mon, 6 Mar 2000 14:15:11 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
> 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
|
|
|