1) Suggest you begin with some self-diagnosis by converting pieces of your code into SAS comments, as a technique for weeding out what is causing the error.
2) It would also be useful to COPY/PASTE your code directly into your forum post, so that others can provide meaningful feedback - without your code any comments received would be just suggestions based on others' situations and experiences, not your particular situation.
So, first suggestion - try number 1 above and then provide number 2 above if you are still unclear about the error cause. If you re-post, be sure to explain your complete SAS environment (version, OS, remote or local SAS system running, has the code ever worked?, do you otherwise have a working SAS environment?, does the code work on another SAS environment/platform).
Scott Barry
SBBWorks, Inc.