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
.
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
.
Running Execs in a TSO/E Address Space
Chapter 13. Using REXX in TSO/E and Other MVS Address Spaces
177
Содержание TSO/E REXX
Страница 1: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Страница 2: ......
Страница 3: ...z OS TSO E REXX User s Guide SA22 7791 00 ...
Страница 10: ...viii z OS V1R1 0 TSO E REXX User s Guide ...
Страница 12: ...x z OS V1R1 0 TSO E REXX User s Guide ...
Страница 14: ...xii z OS V1R1 0 TSO E REXX User s Guide ...
Страница 18: ...xvi z OS V1R1 0 TSO E REXX User s Guide ...
Страница 20: ...2 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 58: ...Tracing Expressions with the TRACE Instruction 40 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 78: ...60 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 86: ...Built In Functions 68 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 128: ...Issuing Other Types of Commands from an Exec 110 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 136: ...Debugging Execs 118 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 170: ...Protecting Elements in the Data Stack 152 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 201: ...Part 3 Appendixes Copyright IBM Corp 1988 2001 183 ...
Страница 202: ...184 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 222: ...Using Variables 204 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 226: ...208 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 238: ...220 z OS V1R1 0 TSO E REXX User s Guide ...
Страница 241: ......