CNTSELECT Procedure OverviewGetting StartedSyntaxDetailsExamplesReferences BY Statement BY variables; A BY statement can be used with PROC CNTSELECT to obtain separate analyses on observations in groups that are defined by the BY variables. Last updated: July 09, 2026