|
The American Programmer | |
| Home | Programming | Books for Computer Professionals | Privacy | Terms |
| Home > Programming > REXX Programming > REXX Language > REXX through JCL |
| Home > Programming > Manuals > REXX Manuals > REXX through JCL |
| Home > Programming > Just Enough > 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
![[Books Computer]](http://www.theamericanprogrammer.com/pix/rwb2_line.gif)
|
Home
|
Programming
|
Books for Computer Professionals
|
Privacy
|
Terms
|
Contact
|
|
Site Map and Site Search
|
Programming Manuals and Tutorials
|
The REXX Files
| Top of Page
|
[an error occurred while processing this directive]