- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 02-22-2018 04:37 PM
(1263 views)
DATA FINAL;
SET WORK.EMSM;
PARENT=CHILD;
I've tried several different ways Rename, Attrib, Format functions and nothing is working. The child values are 4 digits (ex.0001).
HERE'S MY CODE
Data final (RENAME=(CHILD=CHILDnum));
SET WORK.EMSM ;
PARENT=CHILD;
CHILD=PUT(CHILDnum, 4.);
DROP=CHILDnum;
RUN;
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I think you are looking for a z4. format from the question but not positive. Check out this explanation and see if that is what you are looking for: https://communities.sas.com/t5/SAS-Procedures/how-to-pad-character-variable-with-leading-zeroes/td-p...