*---------/mscdc/sas/formats/Tools/numstrt.sas----------*; x cd /mscdc/sas/formats/Tools; options mprint; %pgm(numstrt) options nomprint; /* This creates the numstrt format used by the update macro's processa link code in sas admatch on mvs and by the prepadd Registers equivalency between numeric streets in character form (eg. sixth) or with helping characters (6th) with a numeric code (006). JWS 2/13/98 **CHANGE ABOVE FOR NEW FORMAT & ALL OCCURENCES OF NAME (UC LC)** */ libname library clear; libname library '/mscdc/sasctlgs'; filename text '/mscdc/sas/formats/Snumstrt.sas'; libname geocodng '/uic/projects/geocoding'; data genfmtin;set geocodng.fmatcntl(where=(fmtname eq 'NUMSTRT')); if start='**OTHER**' then return; output; run; ***CHANGE ARGLEN AND LABELLEN***; %genfmat(setin=genfmtin,fmatname=numstrt,arglen=16,other=' ', argvars=start,labelvar=label,labellen=3,savedoc=0); title2 'Partial Print of Format Source'; data _null_; infile text obs=50; input; file print; put _infile_; run; *---test the format---*; data _null_; set genfmtin(obs=10 keep=start label); length result $3; *<===change; result=put(start,$numstrt.); put start= label= result=; run; run;