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.

184 Programming Methods Chapter 8<br />

Lists and Expressions<br />

You can do this to any level, for example:<br />

a=expr(expr(expr(expr(x+y))));<br />

b=a;<br />

Expr(Expr(x + y))<br />

c=eval(a);<br />

expr(x+y)<br />

d=eval(eval(a));<br />

x+y<br />

e=eval(eval(eval(a)));<br />

21<br />

Quote an expression as a string<br />

The JSL Quote() function returns the contents of an expression as a quoted string. Comments and white<br />

space in the string are preserved. Syntax coloring is also applied to the output.<br />

The following script is an example:<br />

x = JSL Quote( /* Begin quote. */<br />

For (i = 1, i

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

Saved successfully!

Ooh no, something went wrong!