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