You claim that PGM2 writes an external file but you fail to share the PUT logic used. Also, without seeing at least sample/representative data to demonstrate what you data might look like is limiting constructive info / feedback, in my opinion.
One option is to go directly to SAS Tech Support with all your detailed information, logs, data-sample, and open a track / issue to report your problem symptom. Otherwise, I would recommend you create an instream DATALINES; example that demonstrates what data you have difficulty with, and provide exact SAS logs with PUTLOG _ALL_; and LIST; command type supporting information, for the forum subscribers (and lurkers equally important).
Scott Barry
SBBWorks, Inc.