What you want is still unclear.
So you have a bunch of files and you want to set 2 macro variables.
How these files and these variables are to be used is still unexplained.
Do you want to macro variables to show the location and name of the program when you run one of the programs?
If so, set the macro variables using the value of %sysfunc(getoption(sysin)) .
... View more