Date: Fri, 15 Feb 2008 14:40:10 -0500
Reply-To: Randall Powers <powers_r@BLS.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Randall Powers <powers_r@BLS.GOV>
Subject: Adding leading zeroes to a variable
I have variable i, and wish to convert it into variable APP.
I don't suspect that i would get any higher than two digits. How would I do
Also, i is generated by this code:
Data ppi.test1b (drop=sfint);
do i = 1 to sfint;
Thus, I suspect i to be numeric (am I correct?)
When I have variable APP I plan to concatenate it to variable EST to give
me variable ITE.
Is there a mismatch of variable type? (EST had observations which are
number/letter combinations, so presumably are character strings) If so, how
do I fix the mismatch?