WRITE-UNIX-FILE

File 215
Op-Sys z/OS
Statement PROCESS
Task This view makes it possible to write data to files in the z/OS UNIX file system.

Fields (z/OS only)

Dictionary Field Name F/L Mu DE Remarks
NODE N5.0   D D Node ID (DBID).
ERROR-CODE N3.0      
ERROR-TEXT A58      
NODE-NAME A16   D  
SYSTEM-MESSAGE-CODE A10      
FUNCTION A8   D Function to be performed. Can be left unspecified. See below for possible values.
PATH A128   D Fully qualified path name of file to be written.
RECORD A253   D Contents of record.
IDENTIFIER A8   D Required for multiple parallel WRITE-UNIX-FILE calls.
RECORD-LENGTH N3.0   D Length of record to be written.

Relevant Error Codes

Code Text z/OS
530 Access denied by Security Facility. X
553 I-O error in directory. X
568 File or directory not found. X
899 I/O ERROR DURING WRITE X

Field Descriptions

Field Name Type/Length Operating System
NODE (N5.0) z/OS

D Node ID (DBID).

Field Name Type/Length Operating System
ERROR-CODE (N3.0) z/OS

Message code.

Field Name Type/Length Operating System
ERROR-TEXT (A58) z/OS

Text describing error.

Field Name Type/Length Operating System
NODE-NAME (A16) z/OS

Name of Node.

z/OS:

Field Name Type/Length Operating System
SYSTEM-MESSAGE-CODE (A10) z/OS
Field Name Type/Length Operating System
FUNCTION (A8) z/OS

Function to be performed. If not left unspecified the following functions are available:

Option Explanation
CLOSE  Closes all records that have been written.
Field Name Type/Length Operating System
PATH (A128) z/OS

Fully qualified path name of file to be written.

Field Name Type/Length Operating System
RECORD (A253) z/OS

Contents of record.

Field Name Type/Length Operating System
IDENTIFIER (A8) z/OS

Required if multiple WRITE-FILE calls are executing in parallel. All requests for the same file must have the same identifier.

Field Name Type/Length Operating System
RECORD-LENGTH (N3.0) z/OS

Length of record to be written. Default is 132.