24.11.2014 Views

Pratique de Sas Windows 9.2... Volume 1 - Ined

Pratique de Sas Windows 9.2... Volume 1 - Ined

Pratique de Sas Windows 9.2... Volume 1 - Ined

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

9.4.3 Des liens/links internes (ods pdf text= anchor= ) et les sauts <strong>de</strong> page (ods startpage= )<br />

ods listing close;<br />

ods escapechar="^";<br />

options nodate nonumber;<br />

ods pdf file="d:\tabsas\odspdfmonlien.pdf" notoc ;<br />

title "Deux Rapports Différents";<br />

ods pdf text="^S={just=c URL='#premier'} Toujours la fameuse classe";<br />

ods pdf text="^S={just=c URL='#second'} Va où le coeur te porte";<br />

ods pdf startpage=now;<br />

title "La Classe!";<br />

ods pdf anchor="premier";<br />

proc report data=sashelp.class nowindows box;<br />

columns AGE WEIGHT ;<br />

<strong>de</strong>fine AGE/group width=20 ;<br />

<strong>de</strong>fine WEIGHT/sum noprint;<br />

compute after AGE;<br />

line 'Total Weight: ' WEIGHT sum 3.;<br />

endcomp;<br />

run;<br />

title "A coeur ouvert";<br />

ods pdf anchor="second";<br />

proc means data=sashelp.heart mean;<br />

class sex; var systolic diastolic ;<br />

run;<br />

ods pdf close;<br />

ods listing;<br />

Commentaires:<br />

Si la table <strong>de</strong>s matières ne vous plait pas, créez la vôtre en mettant notoc tout en actionnant votre propre<br />

construction à l’ai<strong>de</strong> d’instructions ods text= renvoyant à <strong>de</strong>s liens internes #qqch disséminés dans la production<br />

ultérieure sous forme d’ancres par ods pdf anchor= .<br />

Il a été nécessaire <strong>de</strong> faire appel à une instruction commandant le saut <strong>de</strong> page ods pdf startpage=now;<br />

car en situation par défaut, le saut naturel <strong>de</strong> page ne fonctionne qu’au changement <strong>de</strong> procédure ou <strong>de</strong> valeur du<br />

by.<br />

Page 1 2 3<br />

Ajoutant startpage=no sur l’instruction initial ods pdf après notoc, <strong>Sas</strong> retient l’ordre et ne sautera <strong>de</strong> page<br />

que sur un ordre explicite now : ce qui fait qu’alors les <strong>de</strong>ux résultats sont sur une seule secon<strong>de</strong> et <strong>de</strong>rnière<br />

page. Rappelons ici que par défaut la situation est startpage=yes.<br />

INED Wielki 152

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!