EasyManuals Logo

IBM TSO/E REXX User Manual

IBM TSO/E REXX
242 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #195 background imageLoading...
Page #195 background image
Running an exec in the background is the same as running a CLIST in the
background. The program IKJEFT01 sets up a TSO/E environment from which you
can invoke execs and CLISTs and issue TSO/E commands. For example, to run an
exec named SETUP contained in a partitioned data set USERID.MYREXX.EXEC,
submit the following JCL.
Example of JCL to Run an Exec in the Background
//USERIDA JOB 'ACCOUNT,DEPT,BLDG','PROGRAMMER NAME',
// CLASS=J,MSGCLASS=C,MSGLEVEL=(1,1)
//*
//TMP EXEC PGM=IKJEFT01,DYNAMNBR=30,REGION=4096K
//SYSEXEC DD DSN=USERID.MYREXX.EXEC,DISP=SHR
//SYSTSPRT DD SYSOUT=A
//SYSTSIN DD *
%SETUP
/*
//
The EXEC statement defines the program as IKJEFT01. In a DD statement, you
can assign one or more PDSs to the SYSEXEC or SYSPROC system file. The
SYSTSPRT DD allows you to print output to a specified data set or a SYSOUT
class. In the input stream, after the SYSTSIN DD, you can issue TSO/E commands
and invoke execs and CLISTs.
The preceding example must be written in a fixed block, 80 byte record data set. To
start the background job, issue the SUBMIT command followed by the data set
name, for example, REXX.JCL.
SUBMIT rexx.jcl
For more information about running jobs in the background, see z/OS TSO/E User’s
Guide.
Running Execs in a Non-TSO/E Address Space
Because execs that run in a non-TSO/E address space cannot be invoked by the
TSO/E EXEC command, you must use other means to run them. Ways to run
execs outside of TSO/E are:
v From a high level program using the IRXEXEC or IRXJCL processing routines.
v From MVS batch with JCL that specifies IRXJCL in the EXEC statement.
TSO/E provides the TSO/E environment service, IKJTSOEV. Using IKJTSOEV, you
can create a TSO/E environment in a non-TSO/E address space. You can then run
REXX execs in the environment and the execs can contain TSO/E commands,
external functions, and services that an exec running in a TSO/E address space
can use. For information about the TSO/E environment service and how to run
REXX execs within the environment, see z/OS TSO/E Programming Services.
Using an Exec Processing Routine to Invoke an Exec from a Program
To invoke an exec from a high-level language program running in an MVS address
space, use one of the exec processing routines (IRXEXEC or IRXJCL). If you use
IRXEXEC, you must specify parameters that define the exec to be run and supply
other related information. For more information, see z/OS TSO/E REXX Reference.
Running Execs in a TSO/E Address Space
Chapter 13. Using REXX in TSO/E and Other MVS Address Spaces 177

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM TSO/E REXX and is the answer not in the manual?

IBM TSO/E REXX Specifications

General IconGeneral
BrandIBM
ModelTSO/E REXX
CategoryComputer Hardware
LanguageEnglish

Related product manuals