| Publishing Packages |
| Overview of PACKAGE_PUBLISH |
The PACKAGE_PUBLISH CALL routine publishes the specified package. The method of publication depends on the following types of delivery transport:
publish to an archive. See PACKAGE_PUBLISH (Publish Package to Archive).
publish to e-mail. See PACKAGE_PUBLISH (Publish Package to E-mail).
publish to queues. See PACKAGE_PUBLISH (Publish Package to Queues).
publish to subscribers. See PACKAGE_PUBLISH (Publish Package to Subscribers).
publish to a WebDAV-compliant server. See PACKAGE_PUBLISH (Publish Package to a WebDAV-Compliant Server).
| Transport Properties |
Valid property values are defined as follows:
an alternative to specifying explicit e-mail addresses, specifies a character string that indicates the name of the SAS library in which resides the data set from which an e-mail list can be extracted. (Applies to the following transport: e-mail.)
an alternative to specifying explicit e-mail addresses, specifies a character string that indicates the name of the SAS member in which resides the data set from which an e-mail list can be extracted. The data set is fully specified by library.member. (Applies to the following transport: e-mail.)
specifies a character string that indicates the name of the variable (or column) in the data set that contains the e-mail addresses. (Applies to the following transports: e-mail.)
specifies a character string that names the rendered package view, which results from the application of the text viewer template to the package for viewing in e-mail. You can use the following syntax to specify the name of the rendered package view:
FILENAME: external_filename
FILEREF: sas_fileref
This property is valid only when the TEXT_VIEWER_NAME property is also specified. By default, the rendered view is created as a temporary file. This property overrides the default, causing the rendered view to be saved permanently to a file. (Applies to the following transports: e-mail, subscriber.)
specifies a character string that indicates the name of the rendered package view, which results from the application of the HTML viewer template to the package for viewing in e-mail. You can use the following syntax to specify the name of the rendered package view:
FILENAME: external_filename
FILEREF: sas_fileref
This property is valid only when the VIEWER_NAME property is also specified. By default, the rendered view is created as a temporary file. This property overrides the default, causing the rendered view to be saved permanently to a file. (Applies to the following transports: e-mail, subscriber.)
specifies a character string that indicates the name of the archive file. (Applies to the following transports: archive, e-mail, queue, subscriber, WebDAV.)
specifies a character string that indicates the path where the archive should be created. (Applies to the following transports: archive, e-mail, queue, subscriber, WebDAV.)
specifies a character string that indicates the SAS Metadata Repository containing the channel and subscriber metadata. If channel definitions and subscriber definitions are maintained in a SAS Metadata Repository, then the syntax for the CHANNEL_STORE property is as follows:
SAS-OMA://hostname[:portreposname=repositoryName;Where:
is the name of SAS Metadata Server that contains channel information. HOSTNAME must be a DNS name or IP address of a host that is running a SAS Metadata Server.
is the TCP port of the SAS Metadata Server. If no port is specified, then 8561 is used as a default.
is the name of the repository.
specifies a character string that indicates the URL in which the WebDAV collection is placed. You assign an explicit filename to the collection. (Applies to the following transports: e-mail, subscriber, WebDAV.)
Note: When you use COLLECTION_URL, the default behavior is to replace
the existing collection at that
location. ![[cautionend]](../../../../common/61991/HTML/default/images/cautend.gif)
specifies a binary character string correlator that is used on the package header message. (Applies to the following transports: queue, subscriber.)
specifies a character string that indicates the options to use for opening and accessing a SAS data set that contains e-mail addresses that are used to populate addressn. Specify this property as valuevalueoption1= option2= .... (Applies to the following transports: e-mail, subscriber.)
specifies a character string that indicates the text encoding to use for the message body. For valid encoding values, see the SAS National Language Support (NLS): Reference Guide. (Applies to the following transports: e-mail, subscriber.)
specifies the folder path for the channel of interest. This value is used to search for channels with specific names that exist in specific folder locations. When a user defines a channel via SAS Management Console, all channels by default exist in the /Channels folder. SAS Management Console allows the user to define multiple folders and subfolders. All FOLDER_PATH properties must start with /Channels and then can identify subfolders if necessary. For example, a channel named "Sales" might be defined in two different folders:
/Channels/Reports/US/or
/Channels/Reports/Europe/(Applies to the following transport: subscriber.)
specifies a character string that indicates the sender (or package publisher) of the e-mail message. (Applies to the following transports: e-mail, subscriber.)
Note: The FROM field is valid only with the SMTP
e-mail interface. ![[cautionend]](../../../../common/61991/HTML/default/images/cautend.gif)
indicates the password that is needed to log on to the remote host at which the archive will be stored. Specify this property only when the remote host is secured. (Applies to the following transports: archive, e-mail, queue, subscriber.)
indicates the user ID that is needed to log on to the remote host at which the archive will be stored. Specify this property only when the remote host is secured. (Applies to the following transports: archive, e-mail, queue, subscriber.)
returns the value of the generated name of the archive (if the channel has an archive persistent store). (Applies to this transport: subscriber.)
indicates the password that is needed to bind to the Web server on which the package is published. Specify this property only when the Web server is secured. (Applies to the following transports: archive, e-mail, queue, subscriber, WebDAV.)
indicates the URL of the proxy server. (Applies to the following transports: archive, e-mail, queue, subscriber, WebDAV.)
indicates the user ID that is needed to bind to the Web server on which the package is published. Specify this property only when the Web server is secured. (Applies to the following transports: archive, e-mail, queue, subscriber, WebDAV.)
specifies one of the following character strings. Use the IF_EXISTS property to control the treatment of same-named collections already existing on the server. (Applies to the following transports: e-mail, subscriber, WebDAV.)
"NOREPLACE" indicates that if the package being published contains a collection that already exists on the server, the PUBLISH_PACKAGE call is to return immediately without affecting the contents of the existing collection.
"UPDATE" indicates that if the collection already exists on the server, the PUBLISH_PACKAGE call is to update the existing collection by replacing like-named entities and adding newly named entities. If "UPDATE" is specified and both the package to publish and the existing collection have an HTML set (created with INSERT_HTML) with the same NESTED_NAME, then the HTML set in the published package replaces the HTML set in the existing collection.
"UPDATEANY" is identical to "UPDATE" except that the PUBLISH_PACKAGE CALL routine can be used to update a collection that SAS did not create. A consequence of using "UPDATEANY" is that SAS will be unable to retrieve the published package.
Note: When names are generated automatically for HTML set collections,
the publish code ensures that name collisions will not
occur. ![[cautionend]](../../../../common/61991/HTML/default/images/cautend.gif)
specifies the password to use when binding to the SAS Metadata Server. (Applies to this transport: subscriber.) If the METAPASS property is not specified on the PACKAGE_PUBLISH CALL routine, then the METAPASS system option, if set, will be used when binding to the SAS Metadata Server.
specifies the user name to use when binding to the SAS Metadata Server. (Applies to this transport: subscriber.) If the METAUSER property is not specified on the PACKAGE_PUBLISH CALL routine, then the METAUSER system option, if set, will be used when binding to the SAS Metadata Server.
specifies a character string that indicates the URL under which the WebDAV collection is placed. The collection is automatically assigned a unique name. (Applies to the following transports: archive, e-mail, subscriber, WebDAV.)
specifies a character string of "yes" to indicate that the rendered view will be delivered in e-mail. If you specify the PROCESS_VIEWER property with the ARCHIVE_PATH property, then the archive is created but is not sent as an attachment in e-mail. Instead, viewer processing occurs and the rendered view is sent in e-mail. (Applies to the following transports: e-mail, subscriber.)
specifies a character string that indicates the designated e-mail address to which package recipients might respond. (Applies to the following transports: e-mail, subscriber.)
Note: The REPLYTO field is valid only with the SMTP e-mail
interface. ![[cautionend]](../../../../common/61991/HTML/default/images/cautend.gif)
specifies a character string that provides the subject line for the e-mail message. (Applies to the following transports: e-mail, subscriber.)
specifies a character string that indicates the name of the rendered view for delivery to a WebDAV-compliant server. The specified target view name overrides the default name, which is index.html. (Applies to the following transports: e-mail, subscriber, WebDAV.)
specifies a character string that indicates the MIME type of the rendered view for delivery to a WebDAV-compliant server. The target view mimetype overrides the default view mimetype, which is automatically inferred from the viewer. Typical MIME types are HTML (.htm) and plain text (.txt) files. If this field remains blank, then the viewer filename extension is used to locate the MIME type in the appropriate registry. Windows hosts use the Windows Registry; other hosts use the SAS Registry. (Applies to the following transports: e-mail, subscriber, WebDAV.)
specifies a character string that indicates the name of a text viewer template that formats package content for viewing in e-mail by using the following syntax:
FILENAME: external_filename
FILEREF: sas_fileref
A text viewer template might be necessary if the destination e-mail program does not support the HTML MIME type. (Applies to the following transports: e-mail, subscriber, WebDAV.) For more information, see Viewer Processing.
specifies a character string that indicates the name of the HTML viewer template to be applied when publishing e-mail by using the following syntax:
FILENAME: external_filename
FILEREF: sas_fileref
(Applies to the following transports: e-mail, channel, WebDAV.) For more information, see Viewer Processing.
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.