Table A3.2 Building an HREF Attribute from the PATH= Option
file-specification URL= Suboption
Information Used in the
Second Part of the URL
in the HREF Attribute
external-file or
libref.catalog
Not specified The name of the file
external-file or
libref.catalog
Specified, but not NONE The value of the URL=
suboption
external-file or
libref.catalog
NONE No information from
PATH=
fileref Specified or not specified No information from
PATH=
Note: If you use a fileref as the file specification in the BODY=, CONTENTS=, or
PAGE= option in the ODS HTML statement, and you do not use the URL=
suboption in that option, then ODS does not use information from GPATH= or
PATH= when it creates the complete URL for any corresponding HREF
attributes.
3. The last part of the URL that is used in an HREF attribute is, by default, the name of
the file that contains the target. ODS determines the name of the file from the file-
specification that you use in the BODY=, CONTENTS=, or PAGE= option. (ODS
does not create links or references to frame files.) For more information about these
options, see “ODS MARKUP Statement” on page 411.
If you specify the URL= suboption in one of these options, then ODS uses the string
that you specify instead of the filename.
Note: If you use a fileref as the file specification and do not use the URL=
suboption, then ODS does not use information from GPATH= or PATH= when it
creates the complete URL for the HREF attribute.
The anchor-name comes from the value of the ANCHOR= option.
The following figure illustrates the creation of the HREF:
Figure A3.3 Creating the Value of an HREF Attribute
HTML Links and References Produced by the HTML Destination 1093

Get SAS 9.4 Output Delivery System, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.