You must code an OUTPUT statement. A SAS DATA step does have an implicit output operation but since you are in your DO/END loop technique, the only output would occur when the last statement is executed.
Scott Barry
SBBWorks, Inc.
Suggested Google advanced search argument, this topic / post:
data step output statement site:sas.com
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.