FILE Command
Writes the contents of that current window to an
external file.
z/OS specifics: |
file-specification,
ENCODING= option
|
Syntax
FILE file-specification
<ENCODING=encoding-value> <options>
Required Argument
- file-specification
-
specifies a valid
z/OS
external file specification, such as a fileref or the physical filename
of a sequential data set, a member of a partitioned data set (PDS),
a member of an extended partitioned data set (PDSE), or a file in
UNIX System Services (USS).
For information about encodings for z/OS resources such
as data set names and UFS paths, see Encoding for z/OS Resource Names.
Optional Argument
- ENCODING=encoding-value
-
specifies the encoding
to use when writing to the output file. Typically, you would specify
a value for ENCODING= that indicates that the output file has a different
encoding from the current session encoding. However, you can also
specify the same encoding for the output file as for the current session
encoding. You must enclose the value in quotation marks if it contains
a hyphen.
If you specify an encoding
value that is different from the session encoding, SAS transcodes
the data from the session encoding to the specified encoding when
you write data to the output file. The default encoding is the session
encoding, which is the value of the ENCODING= SAS system option.
For valid encoding
values, see “Encoding Values in SAS Language Elements”
in the
SAS National Language Support (NLS): Reference Guide.