GETDFN
Return the default file specification
WSupported on Windows
|
USupported on Unix
|
VSupported on OpenVMS
|
NSupported in Synergy .NET
|
xcall GETDFN(file_spec[, option])
Arguments
file_spec
A field or record returned with the default file specification currently being used by the runtime. (a)
option
(optional) Determines the type of file specification that is returned: (n)
0 = Non-ISAM file specification is returned. (default)
1 = ISAM file specification is returned.
Discussion
The GETDFN subroutine returns the current default file specification being used by the runtime.
Two default file specifications are used by the runtime library, one for opening ISAM files and one for all other operations (opening non-ISAM files; the DELET, PURGE, and RENAM external subroutines; and so forth).
On Windows and Unix, the extension .ddf is the initial default for non-ISAM operations and .ism is the initial default for ISAM operations.
On OpenVMS, SYS$DISK:[ ].DDF is the initial default used for non-ISAM operations and SYS$DISK:[ ].ISM is the initial default used for ISAM operations.
The default file specification is moved to file_spec according to the rules for moving alpha data. See Moving alpha data to an alpha destination for more information.