Date: Mon, 8 Mar 2010 18:57:28 -0800
Reply-To: Henry <chchanghenry@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Henry <chchanghenry@GMAIL.COM>
Organization: http://groups.google.com
Subject: Leading zeros using put(var,z4.) but not working
Content-Type: text/plain; charset=ISO-8859-1
Dear all,
I have a very simple question.
I tried to add the leading zeros before the values like:
111
112
113
I will like to have the following:
0111
0112
0113
I use the put function like
data new;
set old;
newsic= put(sic, z4.);
run;
But the log gives me this information:
ERROR 48-59: The format $Z was not found or could not be loaded.
I am not sure if there is any problem as it seems to be easy??
Any suggestions? Thank you so mcuh!