Aug 16, 2010 #1 noway320 MIS Joined Aug 12, 2010 Messages 19 Location US I am using put function for adding zero before the numeric Is there a way for it not to get lost when exporting to Excel or html?
I am using put function for adding zero before the numeric Is there a way for it not to get lost when exporting to Excel or html?
Aug 16, 2010 1 #2 klaz2002 Programmer Joined Nov 6, 2002 Messages 559 Location US This is a bug in Excel not SAS. I think that if you use the PROC EXPORT procedure you can get your leading zeros to show up. Code: data test; x= 7; y = put(x,z5.); run; proc export data = test outfile = "c:\temp\t1.xls" replace; run; I hope this helps you, Klaz Upvote 0 Downvote
This is a bug in Excel not SAS. I think that if you use the PROC EXPORT procedure you can get your leading zeros to show up. Code: data test; x= 7; y = put(x,z5.); run; proc export data = test outfile = "c:\temp\t1.xls" replace; run; I hope this helps you, Klaz