Publishing Framework
Publish to an ArchivePublishes a package to an archive. SyntaxCALL PACKAGE_PUBLISH(packageId, publishType, rc, properties,< propValue1, ...propValueN>);
DetailsThe ARCHIVE_NAME property identifies the name of the archive file to create. If this property is omitted, the archive transport generates a unique name by default. The ARCHIVE_PATH property identifies where the archive is created. This property can be a physical path name, an LDAP URL, an FTP URL, or an HTTP URL. Note: In the z/OS operating environment, an archive can be published only to UNIX System Services directories. How to Specify an ARCHIVE_PATH If ARCHIVE_PATH is an LDAP URL, it should represent the sasArchivePath distinguished name. The sasArchivePath entry within the LDAP directory contains a saspath attribute that is used to create the archive. Furthermore, if an LDAP URL is specified and the LDAP server is running secured, you must specify the LDAP_BINDDN and LDAP_BINDPW properties (or bindname and password LDAP URL extensions) in order to bind to the LDAP server. If ARCHIVE_PATH is an HTTP URL on a secured server, you must specify the HTTP_USER and HTTP_PASSWORD properties. Specifying the HTTP_PROXY_URL property is optional. If ARCHIVE_PATH is an FTP URL on a secured host, you must specify the FTP_USER and FTP_PASSWORD properties. ExamplesExample 1The following example creates the archive file named results in the /u/users directory.pubType = "TO_ARCHIVE"; properties='archive_path, archive_name'; path = '/u/users'; name = 'results'; CALL PACKAGE_PUBLISH(packageId, pubType, rc, properties, path, name); Example 2The following example specifies the archive path as an LDAP URL that is the SasArchivePath distinguished name. The sasArchivePath entry contains a saspath attribute, which identifies where the archive will be created. In this example, because archive_name is omitted, the archive transport generates a unique name automatically. apath = "ldap://pcc.host.com:389/sasarchivepathcn=HrArchive, saschannelcn=HR,cn=saschannels, sasComponent=sasPublishSubscribe, cn=SAS,o=Alphalite Airways,c=US"; pubType = "TO_ARCHIVE"; properties='archive_path'; CALL PACKAGE_PUBLISH(packageId, pubType, rc, properties, apath); |