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.

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

input mode $ 1-10 nlinks 12-14 user $ 16-23<br />

group $25-32 size 34-40 lastmod $ 42-53<br />

name $ 54-253;<br />

run;<br />

Piping Data from <strong>SAS</strong> to a UNIX System Services Command<br />

When a pipe is opened <strong>for</strong> output by the FILE statement, any lines that are written<br />

to the pipe by the PUT statement are sent to the command’s standard input. For<br />

example, here is a DATA step that uses the UNIX System Services od command to<br />

write the contents of the file in hexadecimal <strong>for</strong>mat to the UNIX System Services file<br />

dat/dump.dat, as follows:<br />

filename oecmd pipe ’od -x -tc - >dat/dump.dat’;<br />

data _null_;<br />

file oecmd;<br />

input line $ 1-60;<br />

put line;<br />

datalines;<br />

<strong>SAS</strong> software is an integrated system of software<br />

products, enabling you to per<strong>for</strong>m data management,<br />

data analysis, and data presentation tasks.<br />

;<br />

run;<br />

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

The following table shows which host-specific options are recognized by the<br />

FILENAME, FILE, and INFILE statements <strong>for</strong> UNIX System Services files and pipes.<br />

No other options are recognized, including such options specific to z/<strong>OS</strong> as DISP,<br />

CL<strong>OS</strong>E, and DCB. Descriptions of the options follow the table.<br />

Table 5.5 Host-Specific Options <strong>for</strong> UNIX System Services Files and Pipes<br />

Option FILENAME FILE INFILE<br />

FILEDATA= X X X<br />

OLD X X<br />

MOD X X<br />

LRECL= X X X<br />

RECFM= X X X<br />

TERMSTR= X X X<br />

FILEDATA=BINARY | TEXT<br />

The FILEDATA= option specifies that the file being processed is expected to<br />

contain one of the following:<br />

BINARY<br />

data without record separator character sequences.

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

Saved successfully!

Ooh no, something went wrong!