In reply to Brett.

Brett, is it possible that you are running in a SAS Grid environment? Possibly the macro variables are not defined in the primary SAS workspace, and you would need to SYSLPUT them to the local context?