Guardian Programming Reference Summary for pTAL and TAL
Procedure Calls Summary (D-F)
Guardian Programming Reference Summary for pTAL and TAL—522631-001
5-32
FILE_GETINFOBYNAME_
Obtains a limited set of information about a file identified by file name.
<0:14> Reserved and undefined.
<15> File is an OSS file.
error := FILE_GETINFOBYNAME_ ( filename:length
,[ type-info ]
,[ physical-recordlen ]
,[ options ]
,[ tag-or-timeout ]
,[ flags ] );
error, INT returned value
filename:length, STRING .EXT:ref:*,INT:value input:input
type-info, INT .EXT:ref:5 output
[0] = Device type.
[1] = Device subtype.
Object type.
[2] =
>0 = SQL disk file.
0 = Non-SQL disk file.
-1 = Not a disk file.
0 = Unstructured disk file.
1 = Relative disk file.
2 = Entry-sequenced disk file.
3 = Key-sequenced disk file.
-1 = Not a disk file.
[4] = File code.
>=0 = Disk file.
-1 = Not a disk file.
physical-recordlen, INT .EXT:ref:1 output
options, INT:value input