DHFS gate, WRITE_HFS_FILE function
The WRITE_HFS_FILE function is used to write an entire z/OS® UNIX file from a single user-specified buffer.
Input Parameters
- CONTENT
- A buffer from which the file is to written.
- PATHNAME
- The path to the file.
- APPEND
- Optional Parameter
- Specifies whether data is to be appended to the existing file. The default is NO: any existing data is overwritten.
- Values for the parameter are:
- NO
- YES
- CREATE_DIRECTORY
- Optional Parameter
- Specifies whether the directory into which the file is being written should be created if it does not exist. The default is NO: if the directory is missing, a NOT_FOUND exception is returned.
- Values for the parameter are:
- NO
- YES
Output Parameters
- REASON
- The values for the parameter are:
- ABEND
- LOOP
- NOT_FOUND
- NOTAUTH
- OPEN_FAILED
- READ_ONLY
- WRITE_ERROR
- RESPONSE
- Indicates whether the domain call was successful. For more information, see RESPONSE parameter on domain interfaces.
- USS_RESPONSE
- Optional Parameter
- The response from UNIX System Services.