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 />

5<br />

Accessing External Files<br />

Referring to External Files 84<br />

How <strong>SAS</strong> Determines Device Types 85<br />

Writing to External Files 85<br />

FILE Statement 86<br />

FILE Statement Syntax 86<br />

FILE Statement Examples 87<br />

Writing to Sequential Data Sets 87<br />

Writing to Members of PDS or PDSE Data Sets 88<br />

Writing to a Printer 88<br />

Writing to the Internal Reader 89<br />

Writing to a Temporary Data Set 89<br />

Using the FILE Statement to Specify Data Set Attributes 89<br />

Using the Data Set Attributes of an Input File 90<br />

Using the FILE Statement to Specify Data Set Disposition 90<br />

Appending Data with the MOD Option 90<br />

Appending Data with the MOD Disposition 90<br />

Writing to Print Data Sets 91<br />

Designating a Print Data Set 91<br />

Designating Nonprint Data Set as a Print Data Set 91<br />

Designating a Print Data Set as a Nonprint Data Set 92<br />

Reading from External Files 92<br />

INFILE Statement 92<br />

INFILE Statement Syntax 93<br />

INFILE Statement Examples 94<br />

Reading from a Sequential File 94<br />

Reading from a Member of a PDS or PDSE 94<br />

Reading from the Terminal 95<br />

Reading Concatenated Data Sets 95<br />

Reading from Multiple External Files 96<br />

Sequentially Reading from Multiple External Files 96<br />

Alternately Accessing Multiple External Files 96<br />

Reading from Print Data Sets 97<br />

Getting In<strong>for</strong>mation about an Input Data Set 97<br />

Accessing Nonstandard Files 97<br />

Accessing IMS and CA-IDMS Databases 97<br />

Accessing ISAM Files 98<br />

Accessing VSAM Data Sets 98<br />

Reading a VSAM File 98<br />

Writing to an Empty VSAM File 98<br />

Updating a VSAM Data Set 99<br />

Using Record-Level Sharing with VSAM 99<br />

83

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

Saved successfully!

Ooh no, something went wrong!