Is there a simple way to have Nomads search multiple paths for a library? This would include a path not in the prefix.
What I had originally thought was something like:
process "MyPanel","MyLibrary",err=*next; goto It_Works
process "MyPanel","../nomlib/MyLibrary"
It_Works:
Unfortunately, this doesn't work as intended. If Nomads can't find the library using the language extension options, it bails out without taking the err=*next.
The other option I'm looking into is to simply try to open the library locally, then in the alternate path(s), until it's found and then use the result.
Any other suggestions?
James
Nomads has a special logic for this :
%NOMADS'Process$ %NOMADS_Process$ | Pre-processing for panel name and library. Program is called using the SCRN_ID$ and SCRN_LIB$ as arguments.
|
Just set the variable or the %NOMADS property to the name of a program (or program;label) of your own in your START_UP or LPG / app initialization program
You can do whatever logic you want in this code, as long as you set the second argument to the actual full pathname of the library before EXITing
Hope this helps
Regards
Thank you, Stéphane. By putting my second thought into a common routine that's set with %Nomad_Process$, it works perfectly!