I think the issue I am facing is this one: http://support.sas.com/kb/6/552.html Anyway, I found a workaround. I added a "BY variable" in Proc Report, and so now the variables used in BY groups are available to the report title e.g. using #BYVAL(Portfolio). So instead of using compute before _page_ now I put the variable in report title.
... View more