This section contains examples that demonstrate different uses of z/OS® UNIX I/O file system functions
Figure 1 is example code (CCNGHF3) that demonstrates the use of z/OS UNIX stream input/output by writing streams to a file, reading the input lines, and replacing a line.
Figure 1. Example of z/OS UNIX
stream input and output functions
|
|
|
To use 64-bit offset and file sizes, you must make the following changes in your code:
The example program (CCNGHF4) in Figure 2 provides the same function as CCNGHF3, but it uses 64-bit offsets. The changed lines are marked in a bold font.
Figure 2. Example of HFS stream
input and output functions
|
|