sas >> ODS PDF external link

by asludtke » Thu, 03 Apr 2008 06:24:19 GMT

I'm trying to create an external link in a PDF document using a Graphics
Title statment. I'm able to get an external link to work, but not within my
title statement -- it's actually appearing somewhere at the bottom of my
table. I've attached a simple version of what I'm trying to accomplish.

Thank you,
Amy Ludtke

PROC EXPORT DATA= sashelp.class
OUTFILE= "class.xls"
DBMS=EXCEL REPLACE;
RUN;
quit;
goptions reset=all;

ods pdf file="class.pdf" pdfnote notoc;
ods escapechar='^';

ods select all;

proc report data=sashelp.class nowindows;
column name sex age height weight;
run;
quit;

goptions reset=all;
goptions device=gif ;
goptions cback=white colors=(black) gunit=pct
ftitle="Arial/bold" htitle=4.5 ftext="Arial" htext=3;
/* works, but... */
ods pdf text="^S={url='class.xls'}Data";
/* fails /
title1 link="^S={url='class.xls'}Data";
/* successful html method */
/* title1 link="class.xls" underlin=1 h=3 color=green "Data" ; */

symbol1 color=blue
interpol=none
value=dot
height=2;

proc gplot data=sashelp.class;
plot weight*age;
run;
quit;
ods pdf close; /* close the HTML file */
run;
quit;


Similar Threads

1. ODS HTML Link to an external file does not work

2. ODS pdf with url= :: get rid of the ugly blue box around your links

The following code creates a PDF document with a table of values, some of
which have links on them.  That's good.

But the cells in the table with links are surrounded by blue boxes.  That's
bad.

I can change the color of the boxes to any other color using the LINKCOLOR=
option.  What I'd like to do is get rid of the box altogether.  But
LINKCOLOR=TRANSPARENT doesn't work.  And LINKCOLOR=BLACK doesn't look right
either (leads to a heavier black line around the cell as compared to other
cells).

I've heard that in SAS v.9 there would be a way to get rid of that box.
But I can't figure out how.  Any ideas?

Here's the code:

***************************;

proc format;
  value $linkft
'sas'='//www.sas.com'
'sas-l'='//www.listserv.uga.edu/archives/sas-l.html'
'dilbert'='//www.dilbert.com';

run;


data k;
 input site $ desc $ 10-60;
cards;
sas       General information about SAS
sas-l     Details about SAS programming
dilbert   Usually good for a laugh
;
run;

ods pdf file='c:\working\links.pdf';
title 'List of Stuff';
proc report data=k nowindows;
  columns site desc ;
  define site /display;
  define desc /display;
  compute site;
    call define(_col_,"style","style=[url='"||put(site,$linkft.)||"']");
  endcomp;
run;

ods pdf close;

3. link to url in a title - ODS PDF

4. pdfmark, external file link

thanks to an earlier post by kevin delaney, i was able to create a pdf
file with links to another pdf file (at a specific page in that file).
The links are "relative links" to a file in the same directory. The
sas code for the link is follows.

This all worked great for a couple of months until recently when a new
user tried the link. His acrobat reader / browser (ie) appends the pdf
file name to the end of the "url" so the address looks like
j://main/blah.pdf/CVF345.pdf#bb9. Of course the browser cannot find
the file. All other users have acrobat readers / browsers that replace
the current file name with the linked file name as follows:
j://main/CVF345.pdf#bb9 and the link works great.

So i tried replacing the relative link with an absolute link but that
does not work. I am not sure why but the browser wants to retain the
current directory and then concatenate the absolute url address
(making an extra long convulted looking address), so the browser
cannot find this url address either.

are there any ideas on how to fix this? 


ods ps pdfmark file="CV_form345sum.ps" style=styles.mtcp;
customr2=compress('^S={url=' || '27'x || CVF345.pdf#bb' || seqnum  ||
'27'x || '}') || customr;
proc print;
var customer2 account nacis use;
run;

5. ods pdf...adding pages to a pdf file

6. NEW ODS PDF bug (PDF TOC)?

Hi, guys.

 

I installed the latest Hot Fix for ODS.

But it seems that there's one more bug.

 

I'm trying to customize PDF TOC (table of contents).

I got 21 datasets and want to display a link to each of them in the PDF
TOC when I display them with PROC REPORT.

 

For some reason I see links only to the last 7 of them.

 

I wonder if anyone encountered it before.

 

Any suggestions are welcomed

 

Here's my code:

 

Macro variable ALLDSNAME resolves to AE APO CHEM COAG CONMED CRIT_EP
CVHX CVPE DEMOG DISP DOSE ECG EXCRIT

            HEMA HX INCRIT PE RAND RISK URIN VITALS

SYMBOLGEN:

 

 

ods pdf file="E:\Therapeutic Area\compound &comp\&num\sas\external
files\&study._metadata.pdf";

 

.....................................

 

ods proclabel='Table of Contents' ;

proc print contents='';

title1 "&study Dataset Contents";

run;

 

............................................

 

%macro allreport;

%do i=1 %to 21;

%do;

ods proclabel="%SCAN(&alldsname.,&i.)" ;

proc report data=temp   ls=170 split='|' nowindows  contents='' ;

columns DSNAME variable varlabel type informat format length comment ;

define DSNAME/display width=8 flow 'Library|Member|Name' noprint ;

define variable/display width=10 flow 'Variable|Name' ;

define varlabel/display width=10 flow ;

define type/display width=10 flow ;

define informat/display width=10 flow 'Variable|Informat' ;

define format/display width=10 flow 'Varibale|Format' ;

define length/display width=8 flow 'Variable|Length' ;

define comment/display width=30 flow ;

 

title "%SCAN(&alldsname.,&i.)";

where dsname eq "%SCAN(&alldsname.,&i.)";

run;

%end;

%end;

%mend;

 

%allreport;

 

ods pdf close;

run;

 

 

 

 

 

Igor Kurbeko

Clinical Programmer Analyst

678 336 4328

 XXXX@XXXXX.COM  <mailto: XXXX@XXXXX.COM > 

<mailto: XXXX@XXXXX.COM >  

If you torture data sufficiently, it will confess to almost anything.

 

7. graphs are not shown in pdf when option CONTENTS is used in ODS PDF

8. Exporting 3D Graphs from SAS EIS to external formats- TIFF, GIF, PDF

Hi,

I am new to SAS EIS and have successfully completed generating reports
using SAS/EIS. I have generated 3d graphs and multidimensional reports
for the example dataset but am unable to export them. Can anyone of
you please suggest how can I save them as TIFF or as PDF or any other
format and send them over email/ zip folder (outside SAS)? Also is
there a way where I can save the graphical process as SAS staments in
SAS/ EIS.

PS: For further info I am using SAS 9.0 version.

I greatly appreciate your help.

Thanks,
Sharada