06-28-2016 05:10 PM
We have a requirement , wherein as part of the footer we need to showcase the user who is viewing the report, GIven that we know that the same is not availbale OOTB, we thought that we would have an STP capture the same and display in the lower section of the report,
Any thoughts of a better way to do so. Please let us know.
06-29-2016 10:30 AM
I think that the stored process is a good idea. You could use code similar to this. This link has the list of reserved macros:
*ProcessBody; %stpbegin; data t; user_details = "Query submitted by - &_METAPERSON "; run; proc report data = t nowd noheader style =[bordercolor=white cellwidth=700 ] style(column)=[font_weight =bold font_style=italic] ; title; run; %stpend;
Here it is in a report (bottom left)
06-29-2016 02:47 PM
Yup, thats the approach we have kept it so far, the only drawback is we loose the synchronization among all the objects in the report. anyways we can retain that functionality along with the STP presence.
06-29-2016 03:41 PM
You cannot synchronize as long as the section includes a stored process. Another possible workaround is to edit the information map to add a character data item with the expression:
Then, hide that data item in all objects, placing it in a list table at the bottom of the report.