FILEDDTEST

FILEDDTEST returns a FIXED BIN(31) value that holds the value 1 if the attribute c applies to file x. Otherwise, a value of 0 is returned.

Read syntax diagramSkip visual syntax diagramFILEDDTEST( x,c)
x
File reference.
c
Character string that holds the attribute to be queried.

When using FILEDDTEST, the following are valid values for c:

append
bkwd
ctlasa
delimit
descendkey
genkey
graphic
lrmskip
print
prompt
scalarvarying
skip0

The ERROR condition with oncode 1010 is raised when the file is not open or the attribute is invalid for the file being queried.