FILESRV Program

Prev | Next | Contents


FILESRV Program

Description

The FILESRV program is used to serve a wide variety of external files and catalog entries, including those that are not defined to a Web server. With the FILESRV program, you can control which files to serve and you can also control the HTTP and MIME headers that are served with the file.

Note: The FILESRV program has previously been included only with SAS/IntrNet for use with Application Dispatcher. Beginning with SAS 9.1, the program is available for use with Application Dispatcher applications and SAS Integration Technologies stored processes.

Along with the FILESRV program, you must also have

to determine which files can be served. See our examples of both types of data sets. For a step by step example of how to use the FILESRV program, see FILESRV Example.

Invoking FILESRV from a Web Browser

The URL must contain the following name/value pairs:

Syntax:

_PROGRAM=SASHELP.WEBPROG.FILESRV.SCL
_FILE=name-of-file-being-served
_FILETYP=C | E 
_PROGRAM=SASHELP.WEBPROG.FILESRV.SCL
The name of the FILESRV program.
_FILE=name-of-file-being-served
The name of the external file (host specific) or catalog entry (4-level) that is to be served. This value is not case-sensitive for catalog entries. For external files, the value is case-sensitive only if the host operating system honors case-sensitive filenames. For example, the values that you specify for UNIX systems are case-sensitive but values that you specify for 0S/390 systems are not.
_FILETYP=C | E
The type of file that is being served. Specify E for an external file and C for a catalog entry. The value specified is not case-sensitive.

Invoking Through the FILESRV Autocall Macro

Syntax:

%filesrv(file=name-of-file-being-served, 
   filetyp=C | E, 
   authdsn=authorization-data-set,
   headdsn=HTTP-headers-data-set);
file=name-of-file-being-served
The name of the external file (host specific) or catalog entry (4-level) that is to be served. This value is not case-sensitive for catalog entries. For external files, the value is case-sensitive only if the host operating system honors case-sensitive filenames. For example, the values that you specify for UNIX systems are case-sensitive but values that you specify for 0S/390 systems are not.
filetyp=C | E
The type of file that is being served. Specify E for an external file and C for a catalog entry. The value specified is not case-sensitive.
authdsn=authorization-data-set
The one- or two-level name of the authorization data set to be used instead of the default data set SASHELP.FSAUTH. This argument is optional.
headdsn=HTTP-headers-data-set
The one- or two-level name of the HTTP headers data set to be used instead of the default HTTP headers data set SASHELP.FSHEAD. This argument is optional.