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.
Catch up on SAS Innovate 2026
Dive into keynotes, announcements and breakthroughs on demand.