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

Starting SAS Publisher

SAS Publisher runs in UNIX and Windows operating environments.

You can start SAS Publisher from a SAS session or from within SAS/Warehouse Administrator.

Starting SAS Publisher from a SAS Session

To start SAS Publisher from a SAS session, enter the following in a SAS command line:

   publishpackage <pubmeta=SAS-data-set>;

If you previously saved session metadata to a specific SAS data set, you can use the pubmeta= option to recall it in a subsequent SAS Publisher session so that you can continue editing it.

As a shortcut, you can also enter the following in the command line:

   publish

The following is an example of how to use the publishpackage command with the pubmeta= option:

   publishpackage pubmeta=sasuser.code

where sasuser is the libname and code is the member name.

If the libname or the member name does not exist–for example, because of a typographical error–SAS Publisher presents a message, such as:

   Member CODE does not exist.  Using SASUSER.ZPUBLISH instead.

To recover, verify the libname and member name that you specified. You can restart SAS Publisher, recalling the correct libname and member name, or you can accept the metadata that has been saved to SASUSER.ZPUBLISH. All metadata that is generated in a SAS Publisher session that you publish is automatically saved to SASUSER.ZPUBLISH.

In addition, metadata from a subsequent SAS Publisher session overwrites the metadata that was generated in the preceding publishing session.

Starting SAS Publisher from SAS/Warehouse Administrator

To start SAS Publisher as a SAS/Warehouse Administrator add-in, you must first install SAS Publisher as an add-in. For details, see Using SAS Publisher with SAS/Warehouse Administrator.

After you have installed SAS Publisher as an add-in, select an item in a data warehouse and select Tools -> Add-ins -> Define Package to Publish.