hostnm_(name)

Purpose

The hostnm_ function retrieves the machine's host name NAME. NAME has a maximum length of 32 characters.

For greater portability, use the GET_ENVIRONMENT_VARIABLE intrinsic instead of this procedure.

Class

Function

Argument Type and Attributes

name
CHARACTER(26), INTENT(OUT)

Result Type and Attributes

INTEGER(4).

Result Value

The returned value is 0 if the host name is found, and an error number otherwise. IBM Copyright 2003