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.

566 JSL Syntax Reference Appendix A<br />

Character Functions<br />

part For a string or namespace, a string that can be part of the string whole. For a list, an item that<br />

can be an item in the list whole. For an associative array, a key that can be one of the keys in the map<br />

whole.<br />

start An optional numeric argument that specifies a starting point. within whole. If start is<br />

negative, contains searches whole for part backwards, beginning with the position specified by<br />

the length of whole – start. Note that start is meaningless for associative arrays and is ignored.<br />

Example<br />

nameList={"Katie", "Louise", "Jane", "Jaclyn"};<br />

r = Contains(nameList, "Katie");<br />

The example returns a 1 because the item “Katie” exists in the list.<br />

Ends With(string, substring)<br />

Description<br />

Determines whether substring appears at the end of string.<br />

Returns<br />

1 if string ends with substring, otherwise 0.<br />

Arguments<br />

string A quoted string or a string variable. Can also be a list.<br />

substring A quoted string or a string variable. Can also be a list.<br />

Equivalent Expression<br />

Right(string, Length(substring)) == substring<br />

Hex(value,

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

Saved successfully!

Ooh no, something went wrong!