* 출처 : http://support.sas.com/resources/papers/proceedings16/4003-2016.pdf;
proc registry export= "D:\colornames.txt"
usesashelp
startat='COLORNAMES';
run;
proc fslist file= "D:\colornames.txt" ;
run;
Data colours;
infile "D:\colornames.txt" dlm='=' dsd truncover;
length colourname $35. hexcode $35.;
input colourname $ hexcode $;
if hexcode =:"hex" then do;
*remove leading text*;
hexcode = ksubstr(hexcode,6);
*replace commas with spaces*;
hexcode = transtrn(hexcode, ',', ' ');
output;
end;
run;
Proc Sort Data=colours;
By Hexcode;
run;
Proc Report Data=colours nowindows;
Column colourname colourname=clr hexcode;
Define colourname / "Colour Name";
Define clr / "Colour";
Define hexcode / "Hex";
Compute clr /char length=35;
call define(_col_,"style","style={background="||colourname||"}");
endcomp;
run;
quit;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!