[USflag] The American Programmer [USflag]


Home
Books on Mainframe Programming
Mainframe Manuals and Tutorials
System Abend codes, Sqlcodes, VSAM/QSAM codes
Everything about the IBM AS/400 Midrange Computer - iSeries
Everything about CICS
Everything about COBOL
Everything about DB2 and SQL
Everything about IMS
Everything about Java and JavaScript
Everything about JCL and JES
Everything about REXX
  Sorting in REXX: The Bubble Sort
  REXX Password Generator
  Using REXX to capture displayed output of TSO command
  Count records in REXX
  REXX program to calculate present value of money
  REXX function to format a number in currency format
  REXX function to produce a fixed-length number
  REXX program to produce lottery numbers
  REXX: what does your phone number spell?
  REXX Practice Problems.
  Just Enough REXX Tutorial
  Setting up to Execute REXX Programs on TSO/ISPF
  How to execute a REXX program
  REXX Boolean operators
  Comparison of CLIST language and REXX
  REXX Comparison operators
  REXX Debugging: the TRACE verb
  Using REXX OUTTRAP
  Reserved REXX Variables
  Executing REXX through JCL.
  Writing ISPF Edit Macros in REXX
  REXX program to unload a PDS
  REXX book: The REXX Language on TSO
  REXX Functions Book
  QMF Procedures Written in REXX
  Using REXX Subroutines with the QMF Calc panel
  REXX error codes (RC)
  REXX programming language manuals
  Books on REXX programming
  The REXX Files
Everything about zOS, VSAM, Tivoli, Assembler
Everything about TSO, ISPF, Spufi
Site Map and Site Search

           Home   > REXX   > REXX through JCL

Tutorial: Executing REXX through JCL. How to run REXX with JCL

 

This is the simplest form: no files are allocated for EXECIO.

All REXX features are available.

All REXX functions are available, including EXECIO.

All TSO commands are available,

for example: DELETE, LISTCAT, HRECALL, HDELETE.

ISPF features are not available, for example VGET, File Tailoring.

//* job statement 
//TSOBATCH EXEC PGM=IKJEFT1A,DYNAMNBR=200 
//SYSEXEC DD DSN=userid.REXX.EXEC,DISP=SHR 
//SYSPRINT DD SYSOUT=* 
//SYSTSPRT DD SYSOUT=* 
//SYSTSIN DD * 
PROFILE PREFIX(userid) /* please use this,*/
/* specifying your userid*/ 
%MYREXX 

 

 

Same as the previous, but two files are allocated for EXECIO

The program uses EXECIO.

It reads the file defined by //INFILE

it writes to the file defined by //OUTFILE

Do not use an ALLOC command for these files in the REXX program!

//* job statement for invoking rexx by jcl
//* good example of TSO in Batch
//* how to run a rexx program with job control language 
//TSOBATCH EXEC PGM=IKJEFT1A,DYNAMNBR=200 
//SYSEXEC DD DSN=userid.REXX.EXEC,DISP=SHR REXX program library
//SYSPRINT DD SYSOUT=* 
//SYSTSPRT DD SYSOUT=* 
//INFILE DD DSN=userid.MY.INPUT,DISP=SHR
//OUTFILE DD SYSOUT=*
//SYSTSIN DD * 
PROFILE PREFIX(userid) /* please use this,*/ 
      /* specifying your userid*/ 
%MYREXX 


















List of books on JCL and other mainframe topics

List of books on REXX and other mainframe topics

[Books Computer]

Home Books for Computer Professionals Privacy Terms |
Site Map and Site Search Programming Manuals and Tutorials The REXX Files Top of Page |