goptions reset problem

Reply
Contributor
Posts: 30

goptions reset problem

Hi,

I am creating a pdf and displaying data and graph in that  and using hyperlink in footnotes, trying to visit the previous pages.
when I use the goptions reset=all;  or goptions device=png;   , the escapechar in footnote doesn't work. and because of that hyperlink doesn't   ..what could be the reason.
The escape charcater though works with  'ods pdf text' statements....

Below is the code...

Please guide...

data dat1;
input year s1 s2 s3 s4;
cards;
1960 109 90 26 46
1970 260 223 130 131
1980 710 824 522 632
1990 1676 1600 1083 1363
1995 2114 2164 1631 1865
2000 2535 2748 2012 2362
;
run;
data dat2; set dat1; sum=s1+s2+s3+s4; run;

ods _all_ close;
options mlogic symbolgen mprint;
/*goptions reset=all; 
goptions device=png; */
%macro makebar();
options orientation=portrait;
goptions ftext='Arial' gunit=pct  htext=1 ctext=green rotate=portrait;
footnote1 j=left wrap "Link to 1st Page ->>" j=right "^S={&TOCfmth URL='#First1'} First";
footnote2 j=left wrap "Link to 2nd Page ->>" j=right "^S={&TOCfmth URL='#Second2'} Second";
footnote3 j=left wrap "Link to 3rd Page ->>" j=right "^S={&TOCfmth URL='#Third3'} Third";
proc gchart data=dat2;
vbar year/sumvar=sum width=15;
run;
%mend;

%macro start();
ods listing close;
ods escapechar="^";
ods pdf file="Vk1.pdf" notoc;
%let TOCfmth = %str(JUST=LEFT VJUST=MIDDLE CELLHEIGHT=14PT FONT_SIZE=10PT CELLWIDTH=145CM linecolor=white);

ods pdf startpage=yes;
ods pdf anchor = "First1";
ods pdf text = "^S={&TOCfmth}First Page";

ods pdf startPage=yes;
ods pdf anchor = "Second2";
proc print data=dat1;run;

ods pdf startPage=yes;
ods pdf anchor = "Third3";
proc print data=dat2;run;

%makebar;
ods pdf close;
ods listing;
%mend;

%start;

Contributor
Posts: 30

Re: goptions reset problem

Somebody help!

Contributor
Posts: 30

Re: goptions reset problem

Somebody pls help to resolve this issue!!

Ask a Question
Discussion stats
  • 2 replies
  • 260 views
  • 0 likes
  • 1 in conversation