The WRITE statement is a data transfer output statement. Data can be output to external sequential, keyed-access (VMS only) or direct-access records, or to internal records.