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.

Appendix A JSL Syntax Reference 691<br />

Utility Functions<br />

As Name(string)<br />

Description<br />

Evaluates argument as a string and changes it into a name.<br />

Returns<br />

A name.<br />

As Namespace(name)<br />

Description<br />

Accesses the specified namespace. An error is thrown if no such namespace exists.<br />

Returns<br />

The namespace.<br />

Arguments<br />

name Unquoted name of a defined namespace.<br />

As Scoped(namespace, variable)<br />

namespace:variable<br />

Description<br />

Accesses the specified variable within the specified namespace.<br />

Returns<br />

The value of the variable, or an error the scoped variable is not found.<br />

Arguments<br />

namespace The name of a defined namespace.<br />

variable A variable defined within namespace.<br />

As SQL Expr(x)<br />

Description<br />

Converts an expression to code that you can use in an SQL Select statement. Use Expr(...) for literal<br />

expressions. Use NameExpr(name) for expressions stored in a variable. Otherwise, the expression returns<br />

the expression to convert.<br />

Returns<br />

A string.<br />

As <strong>SAS</strong> Expr(x)<br />

Description<br />

Converts an expression to a version that is more suitable for <strong>SAS</strong> data step. Use Expr(...) for literal<br />

expressions. Use NameExpr(name) for expressions stored in a variable. Otherwise, the expression returns<br />

the expression to convert.<br />

Returns<br />

A string.

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

Saved successfully!

Ooh no, something went wrong!