Page 1 of 1

How do you compile a REXX ISPF macro

PostPosted: Sat Dec 06, 2008 7:43 am
by Gilles
I've always written my ISPF macros in REXX and I was just wondering if it's even possible to compile them so that they could run even faster. If I compile a standard REXX program with the REXXC command, everything works out like a charm. I run them in either online or batch mode and they do as designed. On the other hand, when I compile an ISPF MACRO, it doesn't give me any error codes but when I try to run it, I abend with a SOC4. Does anybody know what are the exact steps I need to take in order to make this work ? I'm very not sure of what to do here.

Thanks.

Re: How do you compile a REXX ISPF macro

PostPosted: Sat Dec 06, 2008 8:29 am
by dick scherrer
Hello,

Are you running in a tso session or in batch?

Maybe this will help:
http://www.lbdsoftware.com/rexxcomp.html

Re: How do you compile a REXX ISPF macro

PostPosted: Tue Dec 09, 2008 12:48 am
by Gilles
Thanks for your response. I read the document you refer too and I don,t think it applies to my situation. I'm trying to use the ISREDIT environment. It's only for interactive puproses but I'd like to see if I can compile that macro and use it online. It is not intended for batch (anyway, it woldn't make sense). Here's an example of what I mean.

/* REXX */
ADDRESS 'ISREDIT'
"MACRO (FINDSTR)"
"FIND " FINDSTR
EXIT

This macro would try to find a text string. When I call this as an ISPF macro NOT compiled, it works ok. If I compile this, it abends on a S0C4 when I try to run it as an ISPF macro. The article you mention talks about ISPF services and variables but doesn't mention the ISREDIT environment. My gut feeling is that there's no easy way to make this work. My macros are sometimes thousands of lines long and I thought maybe they'd run a bit faster compiled.

Re: How do you compile a REXX ISPF macro

PostPosted: Sat Dec 11, 2010 10:02 am
by sjrcreation
HI Gilles,

Can you please help me out to compile a simple rexx code?
i see you had posted "If I compile a standard REXX program with the REXXC command".
Can you share the JCL to compile a simple Rexx.

Thanks,
SJRcreation

Re: How do you compile a REXX ISPF macro

PostPosted: Mon Dec 13, 2010 3:11 pm
by expat
The REXX compiler is a "pay for" option and not very many sites have it installed.
Talk to your systems administrators to find out if you do have it installed.