Likely your SAS log reveals warnings, possibly error msgs, related to what you are seeing (or not in this case).
Suggest you simplify your SAS program - there is no need for two DATA steps, also you can use a PUT _INFILE_; statement, coded after your INPUT statement in your first DATA step -- eliminating the need for any additional code. And your first DATA step can specify _NULL_ instead of a SAS dataset since you are reading and writing the external file without needing to create a SAS file. Also, if you are not intending to re-format the file, then the INPUT statement can be simplified to INPUT ; (no SAS variables input).
Confirm some information though, such as what OS platform where the external file resides?
And if you must re-post a reply, provide your exact SAS log output (with COPY and PASTE) while revealing all SAS code and SAS-generated messages.
Scott Barry
SBBWorks, Inc.
Message was edited by: sbb