HFSINFO (FTP server) statement

Use the HFSINFO statement to specify a file containing welcome messages specific to each FTP server directory visited by an FTP user. In contrast to FTP users that are logged in as anonymous users, this statement affects only known users.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-HFSInfo--file-mask------------------------------------------><

Parameters

file-mask
The file-mask is a z/OS® UNIX file mask used to find a z/OS UNIX information file for known users. The file mask can contain wildcards or it can be a complete file name. When a user changes directories, a search is conducted with the specified mask. The contents of the first file found is returned to the FTP client and is displayed to the end user. If no file is found matching the specified mask, no information is displayed to the end user.

Restriction: Wildcards work only when an asterisk (*) is placed after a string of characters.

Examples

Use the following code to direct the FTP server to search each directory to which a named FTP client changes, for a file matching the pattern msg*. Each time a named FTP client changes directory, the FTP server searches the target directory for files matching the file-mask msg*. The contents of the first matching file in each directory is returned to the FTP client.
HFSINFO msg* ; Real user HFS info file-mask  
; login

Usage notes

The default value of HFSINFO is <null>, meaning no welcome messages are displayed.

Related topics