You can use the following library functions to write to
z/OS® UNIX file
system files:
- fwrite()
- fwrite_unlocked()
- printf()
- printf_unlocked()
- fprintf()
- fprintf_unlocked()
- vprintf()
- vprintf_unlocked()
- vfprintf()
- vfprintf_unlocked()
- puts()
- puts_unlocked()
- fputs()
- fputs_unlocked()
- fputc()
- fputc_unlocked()
- putc()
- putc_unlocked()
- putchar()
- putchar_unlocked()
- write()
- pwrite()
fwrite() is the only interface allowed for writing to record I/O
files. See z/OS XL C/C++ Runtime Library Reference for more information on all of the above
library functions. For z/OS UNIX low-level I/O, you can use the write() and writev() function.