ANONYMOUSHFSINFO (FTP server) statement

Use the ANONYMOUSHFSINFO statement to specify a file containing information messages specific to each FTP server directory during an FTP login session.

Restriction: This statement affects only FTP clients logged in as anonymous users.

Syntax

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

Parameters

file-mask
The file-mask is an z/OS® UNIX file mask used to find a z/OS UNIX information file for anonymous users. The file mask can contain wildcards or it can be a full file name (for example, readme*). When a user changes directories, a search is made 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 matches the specified mask, no information is displayed to the end user. If multiple files satisfy a generic file-mask, the first is chosen.

Restriction: The generic file name only works when an asterisk (*) is at the end of a character string.

Examples

Use the following example to display the contents of the first file matching readme* in any z/OS UNIX directory to which an anonymous user changes. If the directory has no files matching readme*, no messages are displayed.
ANONYMOUSHFSINFO readme* 
; Anonymous HFS info file-mask  
; login 

Usage notes

Related topics