Previous Top Next

Running

Rexx interpreter calling syntax is: rx [[-]trace] rexx-program [args...] where rexx-program is the filename of the rexx program to run. Extension is also needed. Trace is any of the valid trace commands, see below (trace cmd). Args... are the arguments passed to rexx program ie. rx awari.r runs the awari program rx -a awari.r runs awari with trace=all rx ?r awari.r runs awari with interactive results trace rx banner.r Hi runs banner program with argument Hi WHEN minus "-" or "-s" is used as a trace cmd, then rexx is forced to run a program typed in STDIN or in the arguments following. ie. To write one line program rx - do i = 1 to 10; say i; end or you can use rexx as a calculator rx - say sin(0.5) * sqrt( 3^2 + 4^2 ) If no arguments follows the "-" then rx.exe will wait for input from STDIN. End you program with a Ctrl-Z ie. rx - (press return, and type...) do x=0 to 6.28 by 0.1 y = trunc(39*(sin(x)+1)) + 1 say copies(' ',y) || '*' end and a sine diagram will be displayed.

Previous Top Next