SAS 9.1.3 Integration Technologies » Developer's Guide


SAS Publisher
Requirements
How SAS Publisher Works
Starting SAS Publisher
Publishing a Package
Defining Package Content
Specifying Package Destination
Specifying Package Format
Using SAS Publisher with SAS/Warehouse Administrator
Publishing Framework

Publishing a Package, and Saving and Viewing Publish Code

After you specify the required information on all tabs, the buttons along the right side of the What to Publish tab become available for use.

SAS Publisher buttons

You can either publish the package immediately, or you can delay publishing and save the underlying metadata that is generated during your SAS Publisher session for continued editing.

Select a publishing option by clicking the appropriate button.

OK (Publish Package)
publishes the package immediately. If the package is published successfully, SAS Publisher saves the metadata that describes the package to the SASUSER.ZPUBLISH data set by default. In addition, the saved metadata repopulates the Items to Include in Package window of the What to Publish tab the next time you start SAS Publisher. All items that you include in the package must be accessible when you define and actually publish the package.

This button is available only after you specify all information that is required to publish a package.

View Publish Code
displays the underlying code, in the Generated Code to Publish the Specified Package window, that SAS Publisher generates automatically when you publish the package. After the code displays, you can save and run it later–for example, to publish information in a batch job. You can run this code in a SAS session by cutting and pasting it into the SAS Program Editor window and submitting it.

Save Publish Definition
displays a Save As window that lets you navigate a directory structure so that you can save the package definition to a file at a specified location. The saved file contains the metadata that is used to generate the publish code in a SAS data set. You can republish the package by starting SAS Publisher with the PUBMETA=libref.member parameter, which automatically populates the package information into the SAS Publisher fields. Because the metadata for each package is saved in a separate data set, you can republish the same package multiple times. You can also save variations of the same package to separate data sets for subsequent publishing.

You can save the package definition at any time, even if you have not yet supplied all information that is required to publish a package.

OK (Save Metadata)
saves the package metadata and exits the window.

This button appears only if you use SAS Publisher from SAS/Warehouse Administrator.

Execute Publish Code
publishes the package.

This button appears only if you use SAS Publisher from SAS/Warehouse Administrator.