[Toc][Index]

Get the source code of a "compiled" REXX program


Sometimes it's neccessary to get the source code from a "compiled" REXX 
program. To do this, do the following: 
Issue 

 
  set rxtrace=on

in an OS/2 window and call the program from this window. Normally you 
should now have an interactive REXX interpreter session where you can 
execute the following code: 

 
  do i = 1 to sourceline(); call lineOut "d:\rexxsource.cmd", sourceLine( i ); end;
  exit

Now the file d:\rexxsource.cmd contains the source code of the REXX 
program (normally without any comments, of course). 
(see also Catching debug output, Special environment variables for REXX 
programs, and especially Protect the source code of a REXX program if you 
want to prevent this for your REXX programs) 
  

Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs