Hi All, I'm sure this is simple to most of you, but is stumping me at the moment. I have a program that builds a detail table. It has start, end date, and company # parms (since this can run for either Brand ID# within our organization. I then summarize the data and do a proc report. However, I want to change title2 line in the output based off of the Brand ID #. I am trying this, but my results are not what I expect: data _null_; if &brand_code = 10 then call symputx('comp_name','ABC Company'); else call symputx( 'comp_name', 'XYZ Company'); %put &compname = comp_name; run; then in the proc report: title1 &startdate ' to ' &enddate; title2 &compname; proc report data=work.vendor; run; My headings at report output time are : 06/01/2019 to 06/10/19 &compname ---------------------------------------------------------------------- my log shows this: SYMBOLGEN: Macro variable BRAND_CODE resolves to 10 137 if &brand_code = 10 then call symputx('comp_name','ABC Company'); 138 else call symputx( 'comp_name', 'XYZ Company'); 139 140 %put &compname = comp_name; WARNING: Apparent symbolic reference COMPNAME not resolved. &compname = comp_name Any help would be appreciated!.
... View more