On Mon, 21 Mar 2022 at 13:53, Paul Gilmartin <[email protected]> wrote: > > On Mon, 21 Mar 2022 13:31:44 -0400, Tony Harminc wrote: > > ... > >A good many years ago I wrote a REXX interface to HLASM, which is a > >fairly constrained environment. So you can invoke a REXX program > >during assembly/macro processing, interact with REXX variables in your > >macro, and so on. This is the kind of environment where you can't just > >assume that e.g. TSO or ISPF or UNIX HCEs are available. I was able to > >do it using only the REXX Reference book and the HLASM book. > > > I'm curious. Did you do this using the HLASM I/O exits or other (specify)?
I used the SETCF statement. I first implemented a simple "run REXX program/expression passed in the SETCF args, and return its result in the SETC variable", then added a scheme of co-routines between SETCF and a REXX program so both can maintain context. This uses an MVS subtask, but both tasks don't run at the same time. That might be an adventure! There are also calls to set/get REXX variables explicitly, and a bunch of other ideas roughed-in but not actually implemented. I started this in 2002 and it's still a WIP, but I haven't actually touched it since, um, 2006. If someone's interested I can probably make it available. More a bunch of ideas than a ready-to-use tool. Only about 1500 lines. > IRXEXCOM provides external access to Rexx variables. Is there any > similar access to HLASM SETC or EQUated symbols? I suspect not > -- macros are read too early. Perhaps AINSERT/COPY to invoke Rexx > at a useful time. Or code evaluated symbols as arguments. I haven't found anything in the way of a variable interface beyond what SETCF provides. There is a note in the code about talking to John Ehrman about it. Tony H. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
