SAS 9.1.3 Integration Technologies » Developer's Guide


Publishing Framework
About Packages
Package Content
Package Rendering
Transports
Archived Packages
Subscription Channels
About Events
Publishing
Publishing Using SAS Publisher GUI
Publishing Programmatically Using SAS
Publishing Using a Third-Party Client Application
Package Retrieval
URL Retrieval
Viewer Processing
SAS Publisher
SAS Subscription Manager
SAS Package Reader
SAS Package Retriever
Publish Package CALL Routines
Publish Event CALL Routines
See also:
Administering the Publishing Framework
Administering the Publishing Framework (LDAP Version)
Publishing Framework

Publishing Programmatically Using SAS

The Interface to the Publish Package CALL Routines can be used to write a SAS program to publish a package:

  1. A package and its properties are defined using the PACKAGE_BEGIN CALL routine.

    Example:
    CALL PACKAGE_BEGIN(pid, desc, nameValue, rc);

  2. Items are inserted in the package using an appropriate CALL routine.

    CALL routines fall into two categories of item types:

    Example:
    Call INSERT_DATASET(pid, libname, memname, description, NameValue, rc);

  3. The destination (or transport) for delivering the package is defined using the PACKAGE_PUBLISH CALL routine.

    CALL routines for supported transports are as follows:

    Example:
    publishType = "TO_ARCHIVE"
    .
    .
    .
    CALL PACKAGE_PUBLISH (pid, publishType, rc, properties, archivePath, archiveName);

  4. The end of the package is defined using the PACKAGE_END CALL routine.

    Example:
    CALL PACKAGE_END(pid, rc);

For complete details about how to use the Publish Package CALL routines to publish a package, see Publish Package Interface.