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.

676 JSL Syntax Reference Appendix A<br />

<strong>SAS</strong> Integration Functions<br />

<strong>SAS</strong> Import Query("sqlquery", )<br />

Description<br />

Execute the requested SQL query on the current global <strong>SAS</strong> server connection, importing the results into<br />

a JMP data table.<br />

Returns<br />

JMP Data Table object.<br />

Arguments<br />

"sqlquery" Quoted string that contains the SQL query to perform and from which to import the<br />

result.<br />

Named Arguments<br />

All named arguments are optional.<br />

ConvertCustomFormats(0|1) The default value is true. If true and custom formats are found in<br />

the <strong>SAS</strong> data set being imported, an attempt is made to convert the <strong>SAS</strong> custom formats to JMP value<br />

labels for those columns.<br />

Invisible(0|1) The default value is false. If true, the JMP data table is created hidden. Hidden data<br />

tables that never become visible or linked to an analysis remain in memory until they are explicitly<br />

closed, reducing the amount of memory that is available to JMP. To explicitly close the hidden data<br />

table, call Close(dt), where dt is the data table reference returned by <strong>SAS</strong> Import Query.<br />

UseLabelsForVarNames(0|1) The default value is true. If True, the labels from the <strong>SAS</strong> data set<br />

become the column names in the resulting JMP table. If False, the variable names from the <strong>SAS</strong><br />

data set become the column names in the JMP table.<br />

SQLTableVariable(0|1) The default value is true. If True, an SQL table variable is created in the<br />

resulting JMP table that shows the SQL that was submitted to <strong>SAS</strong> to obtain the data. If False, the<br />

SQL table variable is not created. If an SQL table variable is created and the data set required a read<br />

password, the password is masked.<br />

<strong>SAS</strong> Is Connected()<br />

Description<br />

Discovers whether there is an active global <strong>SAS</strong> server connection.<br />

Returns<br />

1 if an active global <strong>SAS</strong> connection exists, 0 otherwise.<br />

<strong>SAS</strong> Load Text File("path")<br />

Description<br />

Download the file specified in path from the active global <strong>SAS</strong> server connection and retrieve its contents<br />

as a string.<br />

Returns<br />

String.<br />

Arguments<br />

"path" Quoted string that contains the full path on the server of the file to download and retrieve the<br />

contents as a string.

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

Saved successfully!

Ooh no, something went wrong!