data a;
input x;
y = put(x,z10.);
cards;
1
12
123
1234
12345
;
run;
proc print;
run;
Obs | x | y |
---|---|---|
1 | 1 | 0000000001 |
2 | 12 | 0000000012 |
3 | 123 | 0000000123 |
4 | 1234 | 0000001234 |
5 | 12345 | 0000012345 |
data a;
input x;
y = put(x,z10.);
cards;
1
12
123
1234
12345
;
run;
proc print;
run;
Obs | x | y |
---|---|---|
1 | 1 | 0000000001 |
2 | 12 | 0000000012 |
3 | 123 | 0000000123 |
4 | 1234 | 0000001234 |
5 | 12345 | 0000012345 |