Patrick,
You could do a "TELL" to "@.accountname" and then check the HPCIERR
variable. The value of it would vary depending on whether there were a
job or session or both logged on. Then it is a simple matter of looping
until the condition is met or stopping if that is what you want to do.
You don't say if the test is performed in a UDC/COMMANDFILE to determine
if the job should be streamed or if it is done by the job itself to
determine if it should continue, wait, or abort. That information would
be helpful.
--
--Pete Crosby ([log in to unmask] a.k.a. [log in to unmask])
Patrick 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