NETRCLEVEL (FTP client) statement

Use the NETRCLEVEL statement to specify how the FTP client searches the NETRC data set for FTP server hostnames. This statement applies only if you have defined a NETRC data set for the client to use.

Syntax

Read syntax diagramSkip visual syntax diagram
   .-NETRCLEVEL 1------.   
>>-+-------------------+---------------------------------------><
   '-NETRCLEVEL--+-1-+-'   
                 '-2-'     

Parameters

1
The FTP client searches the NETRC data set for the hostname as it was entered by the user: IP address or DNS name. If the client is running in batch mode, the client looks for the hostname in the NETRC data set only if a NETRC DD card is part of the batch job. This is the way the FTP client processed server hostnames up to and including release 320. This is the default.
2
The FTP client searches the NETRC data set for the hostname as it was entered by the user if the user entered a DNS name, or an IP address that cannot be resolved to a DNS name. If the hostname is an IP address that resolves to a DNS name, the FTP client searches the NETRC data set for the DNS name. If the FTP client is running as a batch job and no NETRC DD card is included, the FTP client uses 'userid.NETRC' as the NETRC data set.

Examples

NETRCLEVEL  2 ; convert IP addresses

Usage notes

The FTP server hostname is the DNS name or IP address the user entered to log in to the FTP server. This statement applies only if the FTP client is using a NETRC data set or file.

Related topics

See z/OS Communications Server: IP User's Guide and Commands for information about how to use the NETRC data set during the login process.