File Access |
The FILE statement is used to refer to an external file. If you have values stored in matrices, you can write these values to a file. Just as with the INFILE statement, you need a fileref to point to the file you want to write to. You use a FILE statement to indicate that you want to write to rather than read from a file.
For example, if you want to output to the file USER.TEXT.NEWCLASS, you can specify the file with a quoted literal pathname. Here is the statement:
> file 'user.text.newclass';Otherwise, you can first establish a fileref and then refer to the file by its fileref, as follows:
> filename outclass 'user.text.class'; > file outclass;
There are two options you can use in the FILE statement:
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.