OPTIONS LINESIZE=140 PAGESIZE=100 NOCENTER NODATE NONUMBER NOFMTERR ; *******************************************************************; * WATCH II Study PROGRAM ; * PROGRAM NAME LOCATION DATE PROGRAMMER ; Title1 "Source:w2ed04p32.SAS WATCH II 5/19/2004 EJS " ; * Documented as w2title3-prg.txt ; * Description: Macro to Create Title for Mixed Model Results ; * table: Pretest- posttest measures with Statin as a covariate; * ; * The table title is saved in the following location: ; FILENAME tout "C:\temp\test.txt" ; *******************************************************************; ODS HTML CLOSE; ODS Listing ; ***************************************************************; *** Macro to Create Title *; ***************************************************************; %MACRO w2title3 (dataout,title,var); DATA _NULL_; FILE &dataout; PUT "______________________________________________________________________________"/ "______________________________________________________________________________"/ "&title"// " &var "/ " Variance Component "/ " Group n Subject Residual Baseline Time Intervention "/ " Mean (se) Mean (se) Mean (se) "/ " (p-value) (p-value) "/ "______________________________________________________________________________"/; %MEND; %w2title3 (tout, Table 10. Mixed Model Results for Weight in lbs, Weight (lbs)); RUN;