You could write SAS code that reads each line of each program in the folder, and then changes "Apple" to "Orange", and then writes the text out to a new file. I wouldn't be surprised if some program to do this already exists. And of course, there are non-SAS ways to accomplish this as well.
If the text in this example is something like a server location, or something else that you know might change in the future, I handle this by setting a macro variable with the location of the server location in my AUTOEXEC file, and then I use this macro variable in every program that refers to this server location. At some point in the future, when the server location changes, I only have to change the value of the macro variable assigned in the AUTOEXEC, and all my programs will refer to the new server location.
--
Paige Miller