At 15:40 -0500 on 02/09/2013, John Gilmore wrote about Re: DSPSERV with SCOPE=?:
The obvious question is that of the binding time of this requirement. My scheme is useful at assembly time; Robert Rosenberg's is useful at execution time. John Gilmore, Ashland, MA 01721 - USA
Mine, obviously, is based on the assumption that the code will be in a self-contained stand-alone routine that would be linked with and called by other code on an as-needed basis. Thus the 3 copies of the macro call and the branch logic to select one to execute due to the scope parm needing to be hard coded and unlike the other parms not allowing the value of the parm to be extracted from passed data. Given these constraints it is the simplest solution.