I am guessing that you are trying to create the macro variables parmSite and parmSubj from the values of siteid and subjid. You are getting the errors because siteid and subjid are NOT macro variables. In the data step you are looking for: call symput(parmsite,siteid); call symput(parmsubj,subjid); run; then your fpath assignment may work. Depending on length assignments and values you may want to use strip to remove unwanted blanks such as call symput(parmsite,strip(siteid)); if you get unwanted spaces in the resolved value for fpath.
... View more