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.

690 JSL Syntax Reference Appendix A<br />

Utility Functions<br />

As Column(name)<br />

As Column(dt, name)<br />

:name<br />

dt:name<br />

Description<br />

This scoping operator forces name to be evaluated as a data table column in the current data table (or the<br />

table given by the optional data table reference argument, dt) rather than as a global variable.<br />

Arguments<br />

name Variable name.<br />

dt The data table reference<br />

Note<br />

:name refers to a column name in the current data table. You can also specify which data table to refer to<br />

by use dt:name.<br />

As Date(x)<br />

Description<br />

Formats the number or expression x so that it shows as a date when displayed in a text window.<br />

Returns<br />

A date that is calculated from the number or expression provided.<br />

Argument<br />

x Number or expression.<br />

See Also<br />

Section on Date-Time formats in the <strong>Scripting</strong> <strong>Guide</strong>.<br />

As Global(name)<br />

::name<br />

Description<br />

This scoping operator forces name to be evaluated as a global variable rather than as a data table column.<br />

Arguments<br />

name Variable name.<br />

As List(matrix)<br />

Description<br />

Converts a matrix into a list. Multi-column matrices are converted to a list of row lists.<br />

Returns<br />

A list.<br />

Argument<br />

matrix Any matrix.

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

Saved successfully!

Ooh no, something went wrong!