Opstatus always returns 0 for remote tasks

book

Article ID: 182930

calendar_today

Updated On:

Products

CA OPS/MVS Event Management & Automation

Issue/Introduction

OPSTATUS is returning 0 when checking status of started tasks that run on remote LPARs.
It works fine when the task is local to the system where OPSTATUS is running.

Syntax being used is:

status = opstatus("a","a",taskname,msfid)

Environment

Release : 13.0 and 13.5

Component : OPS/MVS

Resolution

When the system argument is specified for a remote system within a no-wait AOF rule, no output for the function will ever be returned except zero.   
Correct output can be obtained using a REQ (request) rule or dispatching an OPS/REXX to a server using ADDRESS OSF "OI pgmname"