0 pts.
 %char(month_field) yields just ’1′ and not ’01′
Why does the BIF %CHAR drop the leading zero on my month. For example, I have a month value of numeric 07 and I want to make it character with %char and I get '7' back instead of '07'.

Software/Hardware used:
ASKED: February 4, 2005  12:56 PM
UPDATED: November 10, 2010  9:22 PM

Answer Wiki:
Try using %editwd Here is a sample of the same problem wh had with zip code. This does not work zip = %char(zipcod); This does work zip = %trim(%editw(zipcod: $editwd10
Last Wiki Answer Submitted:  November 10, 2010  9:22 pm  by  CharlieBrowne   32,825 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,825 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _