Yea I know - it is late (last posting to this thread a month ago) BUT I just found out ....
Without LE I (and anyone else) can write subroutines that work identical if called from JCL or from another program (in VSE as well as in MVS). All you have to do is make sure that a single parm is prefixed with an LL field. This is no longer true with LE in the picture (unless I use PIPI) (at least in VSE). Either you are a MAIN=YES (then the return is a little different and there is something between my routine and the invoker(=OP-sys)) and R1 is rubbish (not where is is supposed to be when called from another program) or MAIN=NO (which is as it was before but the return is not proper) Don't you love em? ;-) -- Martin Pi_cap_CPU - all you ever need around MWLC/SCRT/CMT in z/VSE more at http://www.picapcpu.de
