How do you compile a REXX ISPF macro



IBM's Command List programming language & Restructured Extended Executor

How do you compile a REXX ISPF macro

Postby Gilles » Sat Dec 06, 2008 7:43 am

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.
Gilles
 
Posts: 16
Joined: Mon Sep 29, 2008 6:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How do you compile a REXX ISPF macro

Postby dick scherrer » Sat Dec 06, 2008 8:29 am

Hello,

Are you running in a tso session or in batch?

Maybe this will help:
http://www.lbdsoftware.com/rexxcomp.html
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: How do you compile a REXX ISPF macro

Postby Gilles » Tue Dec 09, 2008 12:48 am

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.
Gilles
 
Posts: 16
Joined: Mon Sep 29, 2008 6:10 pm
Has thanked: 0 time
Been thanked: 0 time

Re: How do you compile a REXX ISPF macro

Postby sjrcreation » Sat Dec 11, 2010 10:02 am

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
sjrcreation
 
Posts: 30
Joined: Sat Dec 11, 2010 9:44 am
Has thanked: 0 time
Been thanked: 0 time

Re: How do you compile a REXX ISPF macro

Postby expat » Mon Dec 13, 2010 3:11 pm

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.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post