How to use the ISPEXEC statement in a OPS/MVS OSF Server?
search cancel

How to use the ISPEXEC statement in a OPS/MVS OSF Server?

book

Article ID: 26130

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

How to use the ISPEXEC statement in a OPS/MVS OSF Server? 

The following error may occur if the REXX program that use ISPF services is called from an OPS/REXX program:

OPS0997T *-* 27:    address ispexec "select pgm(isfafd)"    
OPS0997T >L>    ISPEXEC                                     
OPS0997T >L>    select pgm(isfafd)                          
OPS3092T No ISPF host command environment is available      
OPS0997T +++     RC(20)                                

 

 


 

Environment

Release: ALL 
Component: OPS/MVS

Resolution

When trying to run the ISPEXEC statement in an OSF server via a ADDRESS OSF host environment be sure to first invoke ISPSTART in order to establish the TSO TMP session:

ADDRESS 'OSF' "ISPSTART CMD(OI ISPFTEST)"

The ADDRESS ISPEXEC instructions issue commands to control ISPF dialogs.

The ISPF datasets must be pre-allocated to the OSF server. See sample REXX ALLOCSPF in the CCLXSAMP library for detailed instructions.

Additional Information

The sample REXX to allocate the ISPF libraries during the OSF server startup is delivered in the member ALLOCSPF of the CCLXSAMP library