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

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

<strong>SAS</strong> Name("name")<br />

<strong>SAS</strong> Name({list of names})<br />

Description<br />

Converts JMP variable names to <strong>SAS</strong> variable names by changing special characters and blanks to<br />

underscores and various other transformations to produce a valid <strong>SAS</strong> name.<br />

Returns<br />

A string that contains one or more valid <strong>SAS</strong> names, separated by spaces.<br />

Argument<br />

"name" A quoted string that represents a JMP variable name; or a list of quoted JMP variable names.<br />

<strong>SAS</strong> Open For Var Names("path")<br />

Description<br />

Opens a <strong>SAS</strong> data set only to obtain the names of its variables, returning those names as a list of strings.<br />

Returns<br />

A list of variable names in the file.<br />

Argument<br />

"path" A quoted string that is a pathname of a <strong>SAS</strong> data set.<br />

<strong>SAS</strong> Send File(source, dest)<br />

Description<br />

Send a file from the client machine to the active global <strong>SAS</strong> server connection.<br />

Returns<br />

1 if successful, 0 otherwise.<br />

Arguments<br />

source Quoted string that contains the full path of the file on the client machine to be uploaded to the<br />

server.<br />

dest Quoted string that contains the full path on the server that receives the file uploaded from the<br />

client machine.<br />

<strong>SAS</strong> Submit("sas code", )<br />

Description<br />

Submit some <strong>SAS</strong> code to the active global <strong>SAS</strong> server connection.<br />

Returns<br />

1 if successful, 0 otherwise.<br />

Arguments<br />

sasCode Quoted string that contains the <strong>SAS</strong> code to submit.<br />

Named Arguments<br />

All named arguments are optional.

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

Saved successfully!

Ooh no, something went wrong!