Contents SAS Publisher Previous Next
 

Adding an External File to a Package

If you specify External File as the item type on the Specify Item to Insert window, two additional fields appear on the Specify Item to Insert window.

Specify Item to Insert Window for external file

  1. Specify whether the file contains text or binary data by clicking the appropriate button in the External File Type field.

  2. Specify the type of data that is contained in the file and the data format of the file by selecting a value for the Mime Type field. For example, a mime type of image/gif specifies that the file contains an image in GIF format. A mime type of application/postscript specifies that the file contains application data that should be treated as a postscript file.

    You can customize the drop-down menu of mime types that appears for this field. The default field values are contained in SASHELP.PUBLISH.MIMETYPES.SLIST. You can add your own mime values to either of the following locations:

    • WORK.PUBLISH.MIMETYPES.SLIST
    • SASUSER.PUBLISH.MIMETYPES.SLIST

    You can write an SCL application to create a MIMETYPES.SLIST in the WORK.PUBLISH or SASUSER.PUBLISH catalog. For details about writing an application with SCL, see SAS Component Language: Reference in SAS Version 8 online documentation.

  3. Identify the instance of the external file to be included in the package. You can specify an external field in either of two ways:

    • Enter the name of the external file directly in the field to the right of the Select External File to Publish button.

    • Click the Select External File to Publish button to display the Open window that enables you to navigate a directory structure so that you can locate and select the external file to be included in the package.

      Select an external file and click OK.

      Focus is returned to the Specify Item to Insert window where the external file name appears automatically in the Select External File to Publish field.

  4. Optionally, specify a description and a name/value pair.

    For details, see Describing an Instance of an Item.

  5. After you finish specifying external file options, click OK to return to the What to Publish tab.

Contents SAS Publisher Previous Next