Hello Cynthia_SAS, I am still struggling in this problem. I reshaped my code but it still didn't work. Here is part of my code. proc Report data=table1 NOWD; Column ("General Info" cumsum Reporting exam form n) ("Group" p1 p2 p3 p4 p5) ; define cumsum/ noprint; define Reporting / left display "Reporting_Group" group; define exam / center display "Exam" ; define form / center display "Form" ; define n /center display "Flags"; define p1 /center display "P<=0" ; define p2 /center display "0<P<=0.4"; define p3 /center display "0.4<P<=0.9" ; define p4 /center display "0.9<P<=1.3" ; define p5 /center display "P>1.3"; compute reporting; count+1; if (mod(count,2)) then do; call define(_row_,"style","style=[background=CXECEDEC]"); end; endcomp; compute n; if n~="0" then do; urlstring= "C:\temp\exam_report_2017..xml#questions!A||'cumsum'"; call define("exam",'URL',urlstring); call define("exam",'style','style={textdecoration=underline color=blue}'); end; endcomp; run; cumsum is the cumulative number of n. n= 2 cumsum=2 1 3 0 3 0 3 4 7 0 7 ............................................ If I use urlsting="C:\temp\exam_report_2017..xml#questions!A12"", i.e. hardcoding the rows number A1 , A3, A8......, the link works. If I want to refer to specific rows , row number= cumsum, how do I code? urlstring= "C:\temp\exam_report_2017..xml#questions!A||'cumsum'" doesn't work. Thanks a lot!
... View more