On 5 April 2011 18:04, Bernd Oppolzer <[email protected]> wrote:
> Very good point; the function prologs and epilogs of LE conforming
> functions (or procedures) in PL/1 or COBOL programs just modify
> "next available byte" pointers into the preallocated storage area for
> all procedures and do no individual GETMAIN/FREEMAIN of their
> save areas etc.
>
You can exploit that stuff in assembler. Wrap your code in a few
CEExxxxx macros and it becomes an LE-enabled module (main program or
subprogram).
Here's IEFBR14 written using those macros
XYZZY CEEENTRY
CEETERM RC=0
PPA CEEPPA
CEECAA
CEEDSA
END
--
http://twitter.com/DougieLawson
http://facebook.com/DougietheIMSman