|
The American Programmer
|
|
How to execute a REXX program
You have a REXX program in MVS/TSO/ISPF. How to you run it?
Different ways to execute a REXX program.
1. On any ISPF panel except option 6: (Setup required. See below)
==> TSO Tryrexx or TSO %Tryrexx
2. In the ISPF Editor: (Setup required. See below)
EDIT userid.REXX.EXEC(Tryrexx) - 01.00
Command ===> save;tso %Tryrexx Scroll ===>
****** ************************* Top of Data *****************
000001 /* REXX Tryrexx */
Using "%" before the program's name shortens TSO's search time for your program.
It says "Not a TSO command, not a program. It is a REXX exec or CLIST"
000002 Say "My REXX program works"
2. On ISPF member list
EX next to member name
EDIT userid.REXX.EXEC
Command ===> Scroll ===>
Name Prompt Size Created Changed
_________ $I 10 2012/10/18 2012/10/18 17:14:56 RE
ex_______ TRYREXX 15 2012/10/18 2012/10/18 18:36:28 RE
3. ISPF option 6
ISPF Command Shell
Enter TSO or Workstation commands below:
==> Tryrexx or %Tryrexx (Setup required. See below)
==> EXEC 'userid.REXX.EXEC(TRYREXX)' EXEC (No setup req'd)
4. REXX in batch, with JCL
5. Inside a REXX program
/* REXX
THIS WILL EXECUTE ANOTHER REXX PROGRAM 3 ways
*/
"TRYREXX" /*(Setup required. See below)*/
"%TRYREXX" /*(Setup required. See below)*/
"EXEC 'userid.REXX.EXEC(TRYREXX)' EXEC"
6. Inside a CLIST
/* THIS WILL EXECUTE A REXX PROGRAM 3 ways
TRYREXX /*(Setup required. See below)*/
%TRYREXX /*(Setup required. See below)*/
EXEC 'userid.REXX.EXEC(TRYREXX)' EXEC
|
Home
|
Programming
|
Books for Computer Professionals
|
Privacy
|
Terms
|
Contact
|
|
Site Map and Site Search
|
Programming Manuals and Tutorials
|
The REXX Files
| Top of Page
|