ENCODING | input character string that specifies the target encoding for the companion file. The companion file is translated into the specified encoding. An example of a target encoding value is ISO-8859-1. |
MIMETYPE | character output parameter that identifies the MIME type of the companion file. The MIME type is returned in the MIMETYPE variable. The publisher of the companion file can set the user-specified MIME type after the companion file is published. If the publisher does not specify the MIME type, then the returned value is blank. |
filename
and url
parameters are character variables
that are updated by the CALL routine. Because they are updated, they
must be initialized with a length large enough to contain the name
of the file or the URL that is being returned. If not, the returned
value will be truncated and a warning will be printed indicating that
one or more parameters were truncated. When called from within the
DATA step, use the LENGTH statement to define the length of the variable.
When called from within a macro, initialize the variable to some value
so that it will have an appropriate length.
data _null_; length contents $64 frame $64 pages $64 body $64 contentsUrl $256 frameUrl $256 PagesUrl $256 bodyUrl $256; path ='/finance/accounting/doc'; CALL RETRIEVE_HTML(entryId, path, body, bodyUrl, frame, frameUrl, contents, contentsUrl, pages, pagesUrl,rc); CALL COMPANION_NEXT(entryId, path, fname, url, rc);
data _null_; length contents $64 frame $64 pages $64 body $64 contentsUrl $256 frameUrl $256 PagesUrl $256 bodyUrl $256 mime $64; path ='/finance/accounting/doc'; CALL RETRIEVE_HTML(entryId, path, body, bodyUrl, frame, frameUrl, contents, contentsUrl, pages, pagesUrl,rc); properties="MIMETYPE"; CALL COMPANION_NEXT(entryId, path, fname, url, rc, properties, mime);