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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Statements under z/<strong>OS</strong> FILENAME Statement 371<br />

SOCKET<br />

reads and writes in<strong>for</strong>mation over a TCP/IP socket. The external file depends on<br />

whether the <strong>SAS</strong> application is a server application or a client application. In a<br />

client application, the external file is the name or IP address of the host and the<br />

TCP/IP port number to connect to followed by any TCP/IP options. In server<br />

applications, it is the port number to create <strong>for</strong> listening, followed by the SERVER<br />

keyword, and then any TCP/IP options. See <strong>SAS</strong> Language Reference: Dictionary<br />

<strong>for</strong> more in<strong>for</strong>mation.<br />

Note: The maximum number of directory or PDS members that you can have<br />

open at the same time is limited by the number of sockets that your FTP server<br />

can have open at one time. This limitation is restricted by the maximum number<br />

of connections created when the FTP server is installed.<br />

You might want to limit the number of sockets you have open at the same time<br />

to prevent potential degradation of your system’s per<strong>for</strong>mance. The number of<br />

sockets that are open at the same time is proportional to the number of directory<br />

or PDS members open at the same time. When the job you are running opens the<br />

maximum number of sockets that can be open at the same time, the results of the<br />

job can become unpredictable. R<br />

TAPE<br />

sends the output to a tape drive.<br />

TEMP<br />

allocates a temporary data set.<br />

TERMINAL<br />

sends the output to your terminal.<br />

UPRINTER<br />

associates the fileref with the Universal Printing device. Any output generated to<br />

a fileref that is defined <strong>for</strong> this device type is <strong>for</strong>matted and sent to the default<br />

device that has been set up interactively through the Printer Setup dialog. By<br />

default on z/<strong>OS</strong>, output is sent to a data set called .sasprt.ps, where<br />

is the value of the SYSPREF= system option. For more in<strong>for</strong>mation about<br />

Universal Printing, see the <strong>SAS</strong> Language Reference: Dictionary.<br />

URL<br />

allows you to access remote files using the URL of the file. The external file is the<br />

name of the file that you want to read from or write to on a URL server. The URL<br />

must be in one of the following <strong>for</strong>ms:<br />

http://hostname/file<br />

http://hostname:portno/file<br />

Refer to <strong>SAS</strong> Language Reference: Dictionary <strong>for</strong> more in<strong>for</strong>mation.<br />

You can specify device-type between the fileref and the file specification in the<br />

FILENAME statement. If you do not specify a device type value <strong>for</strong> a new file, <strong>SAS</strong><br />

uses the current value of the <strong>SAS</strong> system option FILEDEV=.<br />

’physical-filename’ or(’physical-filename-1’... ’physical-filename-n’)<br />

identifies an external file or a concatenation of external files. Enclose<br />

physical-filename in quotation marks. In a concatenation, enclose the entire group of<br />

concatenated file specifications in parentheses.<br />

The physical file can be a sequential data set, a member of a partitioned data set<br />

(PDS), a member of an extended partitioned data set (PDSE), or a file in UNIX<br />

System Services. ‘physical-filename’ can be specified as<br />

3 a fully qualified data set name. For example:<br />

’myid.raw.datax’

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

Saved successfully!

Ooh no, something went wrong!