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
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.