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.

344 SOURCE Procedure Chapter 16<br />

column number<br />

tells <strong>SAS</strong> to substitute the member name in records that are generated by<br />

BEFORE and AFTER statements in an 8-byte field beginning in this column. The<br />

beginning column can be any column from 1 to 73. Aliases, as well as main<br />

member names, are substituted. The name is left-aligned in the field unless the<br />

RIGHT option is specified, and it is padded on the right with blanks unless the<br />

NOBLANK option is specified.<br />

NOBLANK<br />

is meaningful only if column number is specified. When the member name is<br />

substituted in records that are generated by the BEFORE and AFTER statements,<br />

NOBLANK eliminates blanks between the end of the member and any text that<br />

follows. In the following record, a member name precedes the text; NOBLANK has<br />

not been specified:<br />

name ,text text text<br />

When NOBLANK is specified, the same record looks like this:<br />

name,text text text<br />

RIGHT<br />

is meaningful only if column number is specified. When the member name is<br />

substituted in records that are generated by the BEFORE and AFTER statements,<br />

RIGHT causes the member name to be right-aligned in the specified field. By<br />

default, the name is left-aligned in an 8-byte field.<br />

Output<br />

PROC SOURCE writes the following in<strong>for</strong>mation to the <strong>SAS</strong> log:<br />

3 the contents of the entire PDS, if the PRINT option is specified<br />

3 a listing of the member names in the PDS (unless you specify NOPRINT)<br />

3 the number of records <strong>for</strong> each member (unless you specify NOPRINT or NODATA)<br />

3 a summary of the attributes and contents of the PDS.<br />

Even when PRINT is not specified, some records may still be written to the log. The<br />

signal NAME: or ENTRY: or AUTHOR: beginning in column 5 of a record in the library<br />

starts the listing; the signal END beginning in column 5 stops it. If you do not want<br />

<strong>SAS</strong> to list this subset of records, specify the N<strong>OS</strong>UMMARY option.<br />

Example of Printing Selected Members from a PDS<br />

The following example writes to the <strong>SAS</strong> log the contents of the member ORANGES4<br />

from the PDS USERID.TASTE.TEST:<br />

proc source indd=’userid.taste.test’ print;<br />

select oranges4;<br />

run;<br />

The log is shown here:

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

Saved successfully!

Ooh no, something went wrong!