%let ColumnsToPrint = Name Sex Weight; %let ColumnsToPrint_count = 3; %let ColumnsToPrint0 = 3; %let ColumnsToPrint1 = Name; %let ColumnsToPrint2 = Sex; %let ColumnsToPrint3 = Weight; %let ReportTitle = %nrquote(Employee Dependent Data); %let ColumnsToPrint_dsc = ; %let GenerateIndexesOnTargets "" %nrquote(YES); PROC PRINT DATA=&SYSLAST; VAR &ColumnsToPrint; WHERE Sex="M" and Weight > 65; Title "&ReportTitle;"; run;