Honestly, Ksharp you need to sharpen your mouse-cursor, given recent inaccurate post-replies on the forums here.
As mentioned by polingjw, a TITLE statement can be conditionally executed in various ways, one showed was with a MACRO invocation, using PROC SQL to detect a condition, setting a macro variable indicator, and testing that indicator to determine code-path.
Also, consider the TOP "clause" equivalent, your SAS code post-reply provided no "group-level" TOP(nn) equivalent, only where your code generates observations that have the MAX(SALES) value, instead.
Scott Barry
SBBWorks, Inc.
Message was edited by: sbb
... View more