If you have data in matrices and you want to write these data to an external file, you need to reference, or point to, the file (as discussed in the section Referring to an External File. The FILE statement opens the file for output so that you can write data to it. You need to specify a PUT statement to direct how the data are output. These two statements are discussed in the following sections.