You will want to add some PUTLOG _ALL_; SAS statements in your DATA step, to debug what's happening along the way - that should help reveal the problem situation and cause. Also, otherwise having posted the SAS log information which would provide SAS variable values at the time of the error would go along with helping others debug your program.
Scott Barry
SBBWorks, Inc.
The 2025 SAS Hackathon has begun!
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.