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.

CHAPTER<br />

4<br />

Allocating External Files<br />

Introduction to External Files 73<br />

Ways of Allocating External Files 73<br />

Allocating a File <strong>for</strong> a Single Use 74<br />

Allocating a File <strong>for</strong> Multiple Uses 74<br />

Using the FILENAME Statement or Function to Allocate External Files 74<br />

FILENAME Statement Syntax 75<br />

FILENAME Statement Examples 76<br />

Using the JCL DD Statement to Allocate External Files 76<br />

Using the TSO Allocate Command to Allocate External Files 77<br />

Allocating External Files on Tape 77<br />

Allocating External Files to a Pipe 78<br />

Allocating Generation Data Sets 79<br />

Allocating a New Generation of a Generation Data Group 79<br />

Allocating an Existing Generation of a Generation Data Group 79<br />

Allocating Nonstandard External Files 80<br />

Allocating ISAM Files 80<br />

Allocating UNIX System Services HFS Files 80<br />

Allocating PDSEs 80<br />

Concatenating External Files 81<br />

Displaying In<strong>for</strong>mation about External Files 81<br />

Deallocating External Files 81<br />

Introduction to External Files<br />

External files are files whose <strong>for</strong>mat is determined by the operating environment<br />

rather than by <strong>SAS</strong> software. External files include raw data files, JCL libraries, files<br />

that contain <strong>SAS</strong> programming statements, load libraries, and HFS files, which are<br />

part of UNIX System Services (USS). In batch and noninteractive line modes, the <strong>SAS</strong><br />

log and procedure output files are also external files.<br />

Ways of Allocating External Files<br />

To work with an external file in <strong>SAS</strong> software, you must first allocate the file. File<br />

allocation is the process of identifying an external file to <strong>SAS</strong> software. If you are<br />

allocating a new data set, such as a sequential file, partitioned data set (PDS), or<br />

partitioned data set extended (PDSE), you must specify that it is new and you must<br />

describe its structure and <strong>for</strong>mat. These actions are not required <strong>for</strong> new files in the<br />

Hierarchical File System (HFS).<br />

73

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

Saved successfully!

Ooh no, something went wrong!