14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

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.

Appendix A JSL Syntax Reference 569<br />

Character Functions<br />

Arguments<br />

source A quoted string.<br />

text A quoted regular expression.<br />

format Optional. The default is \0, which is the entire matched string. \n returns the nth match.<br />

IGNORECASE Optional. The search is case sensitive, unless you specify IGNORECASE.<br />

Remove(source, position, )<br />

Remove(source, {items})<br />

Remove(source, key)<br />

Description<br />

Deletes the n item(s), starting from the indicated position. If n is omitted, the item at position is<br />

deleted. If position and n are omitted, the item at the end is removed. For an associative array: Deletes<br />

the key and its value.<br />

Returns<br />

A copy of the source with the items deleted.<br />

Arguments<br />

source A string, list, expression, or associative array.<br />

position or key An integer (or list of integers) that points to a specific item (or items) in the list or<br />

expression.<br />

n Optional. An integer that specifies how many items to remove.<br />

Remove From(source, position, )<br />

Remove From(source, key)<br />

Description<br />

Deletes the n item(s) in place, starting from the indicated position. If n is omitted, the item at<br />

position is deleted. If position and n are omitted, the item at the end is removed. For an associative<br />

array: Deletes the key and its value. The source must be an L-value.<br />

Returns<br />

The original source with the items deleted.<br />

Arguments<br />

source A string, list, expression, or associative array.<br />

position or key An integer (or list of integers) that points to a specific item (or items) in the list or<br />

expression.<br />

n Optional. An integer that specifies how many items to remove.

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

Saved successfully!

Ooh no, something went wrong!