On 2016-08-15, at 10:09, Alan Altmark wrote:

> I have seen other code do this.  When opening a file, CMS searches the Active 
> File Table first before reading from disk.
>  
It appears that NUCXLOAD faithfully replicates the behavior of searching
for a MODULE to execute, including all its shortcomings.  EXECLOAD is
smarter, but I don't see that either supports explicit specification of
an SFS path.  CMS Pipelines REXX stage is best of all, supporting eithen
FN FT FM or StreamID.  I've exploited this feature to progressively
convert some of my EXECs to Pipeline stages: PARSE SOURCE, then if
necessary, the EXEC invokes itself recursively as a Pipelines stage.

Might go the other way:
    ADDRESS COMMAND PIPE REXX fn EXEC fm
Then begin the EXEC with ADDRESS CMS.

And I once surprised myself unpleasantly when I coded an EXEC that
modified itself, rewriting to a FM earlier in the search order, then
attempted to invoke itself recursively.  Doesn't work.

-- gil

Reply via email to