/* bpb.sas Daniel Brockman 070514 convert initial blood pressure input. */ /* * bpb operates on a data set created by bpa. * bpb converts the date and time variables into several * more convenient forms (see bpmod.sas). * bpb converts the Wt variable from pounds to kilograms. */ %let dir = C:\b\SAS-X405.7\proj ; libname a "&dir"; %let autodir = &dir\subauto ; * home of autoloader macros ; %include "&dir\bpmod.sas" ; * macros ; options mprint mlogic symbolgen sasautos="&autodir" ; * ----------------------------------------------- ; %let inp = a.bpset1 ; * input data set ; %let outp = a.bpsetdtkg ; * output data set ; * ----------------------------------------------- ; /* inline macro */ %macro body ; * main process ; %global greturn ; * general return value ; %local tempds; * temporary data set name ; %getdsname(tempo); * get unique data set name ; %let tempds = &greturn ; * temporary data set ; %timester(&inp,&tempds) ; * create convenient time variables ; %Lb2Kg(&tempds,&outp); * convert Wt to kilograms ; proc means data=&outp; run; %mend body; * ----------------------------------------------- ; %body ; * let's go ; run; * ----------------------------------------------- ; ;