Hi, You're correct. I'm trying to fill with a picture format. Now: proc fcmp outlib=work.functions.myfunc;
function leadZ(x $);
xx = cats(repeat('0',6-length(x)-1),x);
return (xx);
endsub;
run;
options cmplib=work.functions;
proc sql;
create table x (
a VARCHAR(6),
b VARCHAR(6)
);
insert into x values("123","123");
quit;
proc print data=x;
format a $leadZ.;
run;
Now I don't get any errors, but when I check in the result generated by proc print, there's no difference when it comes to the format being applied. Any ideas? Tks for the help so far!
... View more