LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (March 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: sas-l@uga.edu
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!


Back to: Top of message | Previous page | Main SAS-L page