| Publishing Packages |
| Syntax | |
| Arguments | |
| Details |
Syntax |
| CALL INSERT_FILE(packageId, filename, filetype, mimeType, desc, nameValue, rc<, properties, propValue1, ...propValueN>); |
identifies the package.
| Type: | Numeric |
| Direction: | Input |
names the file, using the following syntax:
FILENAME: external_filename
FILEREF: sas_fileref
| Type: | Character |
| Direction: | Input |
specifies the file type, which must be TEXT or BINARY.
| Type: | Character |
| Direction: | Input |
specifies the MIME type, the value of which is determined by the user. Subscribers can filter packages based on MIME type. See Filtering Packages and Package Entries. For suggested values, see Details.
| Type: | Character |
| Direction: | Input |
describes the file.
| Type: | Character |
| Direction: | Input |
identifies a list of one or more space-separated name/value pairs, each in one of the following forms:
name
name=value
name="value"
name="single value with spaces"
name=(value)
name=("value")
name=(value1, "value 2",... valueN)
Name/value pairs are site-specific; they are used for the purpose of filtering. Seefiltering.
| Type: | Character |
| Direction: | Input |
receives a return code.
| Type: | Numeric |
| Direction: | Output |
identifies a comma-separated list of optional property names. Valid property names are as follows:
PATH
| Type: | Character |
| Direction: | Input |
specifies one value for each specified property name. The order of the property values must match the order of the property names in the properties parameter. Valid property values are defined as follows:
indicates the relative path information for this file. The relative path is included as the name of the file when defined in the ZIP file. The specified path should not contain a drive or device letter, or a leading slash. All slashes should be forward slashes '/' as opposed to backslashes '\'. This property is recognized only by the archive transport. It is ignored by all other transports.
| Type: | Character |
| Direction: | Input |
| Details |
The mimeType parameter is a user-specified MIME type that specifies the type of binary file or text file that is being published. Users might choose to document the supported values in order for publishers to use them or to use their own content strings.
Suggested MIME types include the following:
application/msword
application/octet-stream
application/pdf
application/postscript
application/zip
audio/basic
image/jpeg
image/gif
image/tiff
model/vrml
text/html
text/plain
text/richtext
video/mpeg
video/quicktime
The following example supplies a content string of Image/gif to provide more information about the type of binary file that is being inserted.
filename = 'filename:/tmp/Report.gif'; filetype ='binary'; desc = 'Report information'; nameValue = ''; mimetype = 'Image/gif'; CALL INSERT_FILE(packageId, filename, filetype, mimetype, desc, nameValue, rc);
Copyright © 2008 by SAS Institute Inc., Cary, NC, USA. All rights reserved.