Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
f_getfl z/OS Using REXX and z/OS UNIX System Services SA23-2283-00 |
|||||||||||||||||||||||
Functionf_getfl invokes the fcntl callable service to get the file status flags for a file. Parameters
Usage notesRETVAL returns the file status flags as a numeric value (see REXX predefined variables):
You can use the open flags to test specific values. The
easiest way to test a value is to convert both the RETVAL and the
flags to binary data, and then logically AND them. For example, to
test O_WRITE and O_TRUNC:
ExampleIn the following example, assume
that fd was assigned a value earlier in
the exec:
|
Copyright IBM Corporation 1990, 2014
|