So I remembered that you needed to say "EXEC script"? - it then worked a bit!
The bad news is that there is a problem in the way that GCCLIB either reads arguments, or sets them up when calling CMScommand. And it is all is assembler :-( Anyway I will need to fix this - and maybe move logic to C. Maybe it is a logic error, maybe it is just not reentrant (I suspect this strongly).
Questions
- Does anyone care about EPLIST? The PLIST is simpler and we are talking VM/370, I could just rip EPLIST out :-)? Thoughts ????
- Where is the best reference to the PLIST/EPLIST format and calls?
The good news is that is you call a classic EXEC from rexx and that in turn calls a rexx program - well it all seems good, and behaves sanely :-)
Because the argument defect is no worse than what was there before, I have released it all - and is on the latest docker if people want to play.
Adrian