Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
data uic_data;
length uic $10;
uic = 'W1111'; output;
uic = 'W222'; output;
uic = 'W0123'; output;
uic = 'W01234'; output;
uic = 'W1_11'; output;
uic = 'w3333'; output;
uic = 'A4444'; output;
uic = 'WO123'; output;
run;
data uic_ok
uic_bad (keep = uic err_msg);
set uic_data; /*-- contains UIC */
length err_msg $50
i 8
;
/*-- check leading W */
if substr (uic, 1, 1) eq 'w' then do
err_msg = 'lowercase leading W';
output uic_bad;
end; else if substr (uic, 1, 1) ne 'W' then do
err_msg = 'wrong leading character';
output uic_bad;
/*-- check length */
end; else if length (uic) ne 5 then do
err_msg = 'UIC must be length 5';
output uic_bad;
end; else do
/*-- must all be digits */
err_msg = '';
do i = 2 to 5;
if indexc (substr (uic, i, 1), '0123456789') eq 0 then do;
err_msg = 'invalid numeric';
end;
end;
if err_msg ne ''
then output uic_bad;
else output uic_ok;
end;
run;