CREATE (create an empty data file)

Top  Previous  Next

 

CREATE(file)

CREATE

Creates an empty data file.

file

The label of the FILE to be created.

The CREATE statement adds an empty data file to the operating system directory. If the file already exists, it is deleted and recreated as an empty file. The file must be closed, or the "File Already Open" error is posted. CREATE does not open the file for access.

Errors Posted:

03

Path Not Found

04

Too Many Open Files

05

Access Denied

52

File Already Open

54

No Create Attribute

Example:

CREATE(Master)    !Create a new master file

CREATE(Detail)    !Create a new detail file

 

See Also:

CLOSE