The HTTP headers data set determines which HTTP and MIME headers are served with the file and the mode in which the file is opened. The HTTP headers data set also helps to provide an extra level of restriction on the files that are being served. A file is not served if this data set does not contain an entry that corresponds to the extension of the requested file.
The reserved name for the HTTP headers data set is SASHELP.FSHEAD. The FILESRV program uses this data set to look up the HTTP and MIME headers that will be served with the file. A sample copy of this file is provided with the FILESRV program. You can specify an alternate data set by using the HEADDSN argument in the FILESRV autocall macro.
Note: The SASHELP.FSHEAD sample data set contains a subset of all possible extensions. You can customize the data set by adding or deleting extensions as needed.
The HTTP headers data set must contain the following 4 character variables:
EXT
Host | Filename | Extension |
---|---|---|
UNIX | /software/filesrv/testfiles/hello.html |
html |
Windows | c:\temp\temp.htm |
htm |
z/OS | USER.TEMP.HTML(HELLO) |
HTML |
OpenVMS | $1$DISK99:[USER.TEMP]HELLO.HTM;4 |
HTM |
CMS | HELLO HTML A |
HTML |
This 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 z/OS systems are not.
DATATYPE
B
if the file contains binary data (for example, image files) or
T
for text files. This value is not case-sensitive.FILETYPE
E
for an external file or
C
for a catalog entry. The value is not
case-sensitive.HEADER
Note: z/OS is the successor to the OS/390 and MVS operating systems. SAS/IntrNet 9.1 for z/OS is supported on the MVS, OS/390, and z/OS operating systems and, throughout this document, any reference to z/OS also applies to OS/390 and MVS, unless otherwise stated.