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 713<br />

Utility Functions<br />

Returns<br />

The text contained in the file.<br />

Arguments<br />

path A pathname that points to a text file. This can be a URL.<br />

XMLParse Optional argument that causes an XML text file to be converted into JSL.<br />

<strong>SAS</strong>ODSXML Optional argument that causes the text file to be parsed as <strong>SAS</strong> ODS default XML.<br />

Local({name=value, ...}, script)<br />

Description<br />

Resolves names to local expressions.<br />

Local Here(expression)<br />

Description<br />

Creates a local Here namespace block. Use this function to prevent name collisions when multiple scripts<br />

are executed from the same root namespace (for example, when a script executes two button scripts that<br />

have the same variables). The argument can be any valid JSL expression.<br />

Lock Globals(name1, name2, ...)<br />

Description<br />

Locks one or more global variables to prevent it or them from being changed.<br />

Lock Symbols(, , ...)<br />

Description<br />

Locks the specified symbols, which prevents them from being modified or cleared. If no symbols are<br />

provided, all global symbols are locked. If no symbols are provided and the script has the Names Default<br />

To Here mode turned on, then all local symbols are locked.<br />

LogCapture(expr)<br />

Description<br />

Evaluates the expr, captures the output that would normally be sent to the log, and instead returns it.<br />

Returns<br />

A string that contains the log output.<br />

Argument<br />

Any valid JSL expression.<br />

Note<br />

No output appears in the log.<br />

LPSolve(A, b, c, L, U, neq, nle, nge, )<br />

Description<br />

Returns a list containing the decision variables (and slack variables if applicable) in the first list item and<br />

the optimal objective function value (if one exists) in the second list item.

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

Saved successfully!

Ooh no, something went wrong!