How to run a program from an ESP REXX exec.
search cancel

How to run a program from an ESP REXX exec.

book

Article ID: 53946

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

How to run a program from an ESP REXX exec.

Resolution


The REXX commands LINKMVS and ATTCHMVS can be used as per the IBM manual. 

Example:

ADDRESS ATTCHMVS 'TESTPGMA var1 var2 var3'
The above will run program TESTPGMA and pass parameters var1, var2 and var3.
These 2 commands will get the programs from the LINKLIST or the STEPLIB/JOBLIB.

Note: Program comes from ESP STEPLIB/JOBLIB and the library must be APF authorized.