14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

570 JSL Syntax Reference Appendix A<br />

Character Functions<br />

Repeat(source, a)<br />

Repeat(matrix, a, b)<br />

Description<br />

Returns a copy of source concatenated with itself a times. Or returns a matrix composed of a row<br />

repeats and b column repeats. The source can be text, a matrix, or a list.<br />

Reverse(source)<br />

Description<br />

Reverse order of elements or terms in the source.<br />

Argument<br />

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

Reverse Into(source)<br />

Description<br />

Reverse order of elements or terms in list or expr in place.<br />

Argument<br />

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

Right(string, n, )<br />

Right(list, n, )<br />

Description<br />

Returns a truncated or padded version of the original string or list. The result contains the right n<br />

characters or list items, padded with any filler on the left if the length of string is less than n.<br />

Shift(source, )<br />

Description<br />

Shifts an item or n items from the front to the back of the source.<br />

Arguments<br />

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

n Optional. An integer that specifies the number of items to shift. Positive values shift items from the<br />

beginning of the source to the end. Negative values shift items from the end of the source to the<br />

beginning. The default value is 1.<br />

Shift Into(source, )<br />

Description<br />

Shifts items in place.<br />

Arguments<br />

source A string, list, or expression.

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

Saved successfully!

Ooh no, something went wrong!