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.

Appendix A JSL Syntax Reference 591<br />

Constants<br />

See Also<br />

The Conditional Expressions and Loops section of the <strong>Scripting</strong> <strong>Guide</strong>.<br />

Step(x, x1, y1, x2, y2, ...)<br />

Description<br />

Finds corresponding y for a given x from a step-function fit. The points must be in ascending order.<br />

Stop()<br />

Description<br />

Immediately stops a script that is running.<br />

While(expr, body)<br />

Description<br />

Repeatedly tests the expr condition and executes the body until the expr is no longer true.<br />

Constants<br />

JMP provides functions for two useful constants.<br />

Note: These functions do not take an argument, but the parentheses are required.<br />

e()<br />

Description<br />

Returns the constant e, which is 2.7182818284590451...<br />

Pi( )<br />

Description<br />

Returns the constant π, which is 3.1415926535897931...<br />

Date and Time Functions<br />

Datetime values are handled internally as numbers of seconds since midnight, January 1, 1904.<br />

The expression x=01Jan1904 sets x to zero, since the indicated date is the base date or “zero date” in JMP.<br />

If you examine the values of dates, they should be appropriately large numbers. For example 5oct98 is<br />

2990390400.<br />

Abbrev Date(date)<br />

Description<br />

Converts the provided date to a string.

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

Saved successfully!

Ooh no, something went wrong!