BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
DmytroYermak
Lapis Lazuli | Level 10

Hi all,

 

Could you please help with the table reporting that should contain links on the correspondent files. I have a dataset that with tables names and should receive a one column with the names and each name should be an interactive.

 

It has to be an rtf and pdf documents. Is it possible with SAS?

  

data test;
  format TABLE $6. LINK $25.;
  input TABLE LINK;
  datelines;
Table1 C:\ProjectX\Table1.rtf
Table2 C:\ProjectX\Table2.rtf
Table3 C:\ProjectX\Table3.rtf
;
run;

 

Thank you!

 

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

You can use Proc REPORT with the CALL DEFINE and the URL attribute to set your link. See sample code below.

 

Also have a look at http://support.sas.com/kb/24/182.html concerning the color around the link

 

data test;
  format TABLE $6. LINK $25.;
  input TABLE LINK;
  datalines;
Table1 C:\ProjectX\Table1.rtf
Table2 C:\ProjectX\Table2.rtf
Table3 C:\ProjectX\Table3.rtf
;
run;

ods pdf file="c:\temp\sample.pdf";
proc report data=test;
  column table link _dummy;
  define table / display;
  define link / display noprint;
  define _dummy / computed noprint;
  compute _dummy;
    call define ("table", "URL", link);
/*    call define("table", "style", "style={LINKCOLOR=white}");*/
  endcomp;
run;
ods pdf close;

View solution in original post

2 REPLIES 2
BrunoMueller
SAS Super FREQ

You can use Proc REPORT with the CALL DEFINE and the URL attribute to set your link. See sample code below.

 

Also have a look at http://support.sas.com/kb/24/182.html concerning the color around the link

 

data test;
  format TABLE $6. LINK $25.;
  input TABLE LINK;
  datalines;
Table1 C:\ProjectX\Table1.rtf
Table2 C:\ProjectX\Table2.rtf
Table3 C:\ProjectX\Table3.rtf
;
run;

ods pdf file="c:\temp\sample.pdf";
proc report data=test;
  column table link _dummy;
  define table / display;
  define link / display noprint;
  define _dummy / computed noprint;
  compute _dummy;
    call define ("table", "URL", link);
/*    call define("table", "style", "style={LINKCOLOR=white}");*/
  endcomp;
run;
ods pdf close;
DmytroYermak
Lapis Lazuli | Level 10
Thank you, Bruno! It has worked.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1046 views
  • 0 likes
  • 2 in conversation