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

Utility Functions<br />

Arguments<br />

prompt An optional quoted string. If provided, that string appears at the top of the Open window.<br />

initial directory An optional quoted string that is a valid filepath to a folder. If provided, it<br />

specifies where the Open window begins. If not provided, or if it’s an empty string, the JMP Default<br />

Directory is used.<br />

filter list An optional list of quoted strings that define the filetypes to show in the Open window.<br />

See the following example for syntax.<br />

first filter An optional integer that specifies which of the filters in the filter list to use initially. If<br />

you use an integer that is too large or small for the list (for example, 4 for a list of 3), the first filter in<br />

the list is used.<br />

save flag An optional Boolean that specifies whether the Open window or Save window is used. 0<br />

lets the user select a file to open in JMP. 1 lets the user save a new, empty file of the selected type in the<br />

selected folder. The default value is 0.<br />

default file The name of the file that appears in the window by default.<br />

multiple An optional argument that lets the user select multiple files if the save flag is 0.<br />

Note<br />

Although all arguments are optional, they are also positional. For example, you cannot specify a filter list<br />

without also specifying the caption and the initial directory.<br />

Example<br />

The following script assigns Select JMP File as the window title; shows the Documents directory; shows<br />

JMP Files and All Files in the File name list and selects JMP Files; displays the Open window; and shows<br />

the file name Earthquakes.jmp.<br />

Pick File("Select JMP File", "$DOCUMENTS", {"JMP Files|jmp;jsl;jrn", "All<br />

Files|*"}, 1, 0, "Earthquakes.jmp")<br />

Platform Preferences(platform(option(value)), ...)<br />

Platform Preference(platform(option(value)), ...)<br />

Set Platform Preferences(platform(option(value)), ...)<br />

Set Platform Preference(platform(option(value)), ...)<br />

Description<br />

Sets preferences for platforms.<br />

Polytope Uniform Random(samples, A, b, L, U, neq, nle, nge, ,<br />

)<br />

Description<br />

Generates random uniform points over a convex polytope.<br />

Arguments<br />

Samples The number of random points to be generated.<br />

A The constraint coefficient matrix.<br />

B The right hand side values of constraints.

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

Saved successfully!

Ooh no, something went wrong!