02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

106 Host-Specific Options <strong>for</strong> UNIX System Services Files Chapter 5<br />

All of the above specifications (x’15’, x’0C’, and x’25’) assume that the files use<br />

an ENCODING= value whose short (12 byte) name is in the <strong>for</strong>m open_ed-nnnn<br />

and whose long (32 byte) name contains (OpenEdition), <strong>for</strong> example,<br />

open_ed-1047 or Western(OpenEdition). These characters are automatically<br />

transcoded to or from the file’s encoding if they are required by the ENCODING=<br />

or LOCALE= options.<br />

The last occurrence of FILEDATA= or TERMSTR= takes precedence.<br />

Specification of one or the other of these options on a FILE or INFILE statement<br />

takes precedence over the specification in a related FILENAME statement.<br />

The full precedence order is as follows:<br />

1 Specification of FILEDATA= or TERMSTR= on a FILE or INFILE statement.<br />

2 Specification of FILEDATA= or TERMSTR= on a FILENAME statement.<br />

3 Specification of FILEDATA= on a DD JCL statement when the file was<br />

created by that DD statement<br />

4 Implied by the RECFM= option in effect <strong>for</strong> the file.<br />

The RECFM= option on the FILENAME, FILE, and INFILE statement can<br />

imply the value assumed <strong>for</strong> the termination sequence. This implication is always<br />

overridden by the presence of a TERMSTR= or FILEDATA= option <strong>for</strong> the file.<br />

Here are the default values:<br />

RECFM=V|D TERMSTR=NL is implied. (This is the default.)<br />

RECFM=F TERMSTR=NONE is implied.<br />

RECFM=P TERMSTR=NL implied, along with other <strong>for</strong>matting control<br />

characters.<br />

RECFM=N TERMSTR=NONE is implied.<br />

Note: The FILEDATA= parameter on the DD JCL statement is only used by z/<br />

<strong>OS</strong> when the file is being created by that JCL statement. For existing files, the<br />

FILEDATA= parameter is ignored by z/<strong>OS</strong>, and <strong>SAS</strong> is in<strong>for</strong>med of its value at file<br />

creation time. There<strong>for</strong>e, <strong>SAS</strong> cannot detect a change in the JCL. However, <strong>SAS</strong><br />

will honor the values of FILEDATA= or TERMSTR= specified on the FILENAME,<br />

INFILE, or FILE statements when replacing an existing file or when reading a<br />

file. R<br />

CAUTION:<br />

The combination of RECFM= and TERMSTR= provides much flexibility <strong>for</strong> reading and<br />

writing many different file <strong>for</strong>mats. It is possible to use these options in a way that<br />

can produce a file that may be difficult to process in the future. For example, a<br />

PRINT file may be created without record terminators, but this file would look strange<br />

when printed on a printer or viewed in an editor. R

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!