On Thu, 7 Aug 2008 12:34:46 -0400, Dave Salt <[EMAIL PROTECTED]> wrote:

>If you want compiled REXX to be portable (in other words, you want the REXX
to be executable at sites that don't have the REXX 'library' installed),
then you *must* use the SLINE option (as well as the ALT option). This means
the REXX source will be included in the executable, and will be executed at
interpreted speed on systems where the REXX library isn't installed.
However, as someone else pointed out, you can make the source unreadable by
using the CONDENSE option.
>

Unreadable?  Or simply "less obviously readable"?  After all, if the
interpreter can handle it, it must be reversible to source REXX statements
in some way.

>As far as execution goes, you can prevent the code from being traced by
specifying CALL TRACE "OFF" throughout the program. To be safe, you need to
specify CALL TRACE "OFF" as the very first line in the program, and at every
point where the program 'pauses' to do something else. For example, if you
have a REXX program that displays an ISPF panel and/or calls another program
(etc) then you'll need to do something like this:
>
>/* REXX */
>call trace "OFF"
>address ispexec
>do forever
>"DISPLAY PANEL(MYPANEL)"
>call trace "OFF"
>if rc> 0 then exit
>"SELECT CMD(MYPROG)"
>call trace "OFF"
>end
>
>You'll notice that the above uses CALL TRACE "OFF" three times; at the very
start of the program, immediately after it displays a panel, and immediately
after it calls another program.

I'm not certin, but I think you'd want to capture the rc after the DISPLAY,
before calling trace "OFF".

Good example, though.

You'd probably also want to deal with attention processing, as otherwise
someone could interrupt the exec and start an interactive trace at a time
other than when you paused for input.

-- 
  Walt

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to