Publish Package Interface |
Initializes a package and returns a unique package identifier.
CALL PACKAGE_BEGIN(packageId, desc, nameValue, rc
<, properties, propValue1, ...propValueN>);
Name/value pairs are site-specific; they are used for the purpose of filtering.
properties
parameter. Valid property values are defined as follows:
As an example, a package might be described as containing first quarter profits that were generated by the Houston office. The specified description and scope uniquely define the package so that consumers can filter name/value pairs on packages or entries unambiguously.
An example of a namespace definition that you enter in the Namespaces field follows:
HOUSTON='http://www.AlpineAirways.com/revenue/final'
A namespace specification is case-sensitive with single quotation marks surrounding embedded values. To specify multiple namespaces, separate each namespace definition with a space.
For details about retrieving packages with the aid of scoping and filtering criteria, see Specifying Name/Value Pairs.
The package identifier returned by this CALL routine is used in subsequent INSERT and PACKAGE CALL routines.
The following example initializes a package and returns the package identifier in packageId.
packageId=0; rc=0; desc = "Nightly run."; nameValue=''; CALL PACKAGE_BEGIN(packageId, desc, nameValue, rc);
The following example initializes a package with an expiration date and returns the package identifier in packageId.
packageId=0; rc=0; desc = "Nightly run."; nameValue=''; dtValue = '20apr2010:08:30:00'dt; CALL PACKAGE_BEGIN(packageId, desc, nameValue, rc, "EXPIRATION_DATETIME", dtValue);
The following example initializes a package with an expiration date and an abstract character string and returns the package identifier in packageId.
packageId=0; rc=0; desc = "Nightly run."; nameValue=''; dtValue = '20apr2010:08:30:00'dt; abstract = "This package contains company confidential information."; properties="EXPIRATION_DATETIME, ABSTRACT"; CALL PACKAGE_BEGIN(packageId, desc, nameValue, rc, properties, dtValue, abstract);The following example initializes a package with two namespaces and returns the package identifier in packageId.
packageId=0; rc=0; desc = "Nightly run."; nameValue=''; namespaces = 'A="http://www.alpair.com/myNamespace1" B="http://www.alpair.com/myNamespace2"'; CALL PACKAGE_BEGIN(packageId, desc, nameValue, rc, "NAMESPACES", namespaces);
Publish Package Interface |