[USflag] The American Programmer [USflag]

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
  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: Executing a Program

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.

Some setup may be required. Read this short tutorial

 1. On any ISPF panel except option 6: 
	==> 	TSO Tryrexx or TSO %Tryrexx

 2. In the ISPF Editor: 
 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 
	==> 	EXEC 'userid.REXX.EXEC(TRYREXX)' EXEC (No setup req'd)

4. REXX in batch, with JCL

5. Inside a REXX program
/* REXX                                            
"EXEC 'userid.REXX.EXEC(TRYREXX)' EXEC"             

6. Inside a CLIST
EXEC 'userid.REXX.EXEC(TRYREXX)' EXEC            

[Books Computer]

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