Publish Package Interface |
Retrieves the next companion HTML file in the ODS HTML set.
CALL COMPANION_NEXT(entryId, path, filename, url, rc <, properties, propValue1, ...propValueN>);
properties
parameter. Valid property values are defined as follows:
The publisher can choose to publish any combination of the HTML files. Included in the set of published files can be any number of additional HTML files or companion files.
The 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.
Refer to Publish/Retrieve Encoding Behavior for more information on how HTML files are published and how the optional encoding property can be used to provide encoding information to package recipients.
The following example retrieves an HTML file and then retrieves the next companion HTML file in the set.
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);
Publish Package Interface |