Patrick,
you can do what you want to do in MPEX as follows:
(In this example "acct" = account name).
:MPEX
% setvar sessions = jscount("@.acct&online")
% exit
if sessions = 0 then
stream jobname
endif
************
Hope this helps you.
Steve Zink
Beyond Y2K, Inc.
([log in to unmask])
In article <[log in to unmask]>,
[log in to unmask] wrote:
> My company has a Stream Job on our HP3000 that can only run if all SESSIONS
> are logged of a specific account. The problem is the only way we know to
> check to see if there is any sessions logged on is to use the HP variable
> HPSESCOUNT in a IF test (IF HPSESCOUNT = 0 THEN ...) in a stream job.
>
> This works 90% of the time except when a person forgets to log off the
> console. Does anybody know of a way to check for SESSIONS (Not Jobs) in a
> specific account tha can be used like the above IF test.
>
> Thanks in advance
>
> Patrick K. Faloney
> Systems Analyst
> STB Systems
>
> -----== Posted via Deja News, The Leader in Internet Discussion ==-----
> http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum