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.

672 JSL Syntax Reference Appendix A<br />

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

<strong>SAS</strong> Get Data Sets(libref)<br />

Description<br />

Returns a list of the data sets defined in a <strong>SAS</strong> library.<br />

Returns<br />

List of strings.<br />

Arguments<br />

libref Quoted string that contains the <strong>SAS</strong> libref or friendly library name associated with the library<br />

for which the list of defined <strong>SAS</strong> data sets is returned.<br />

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

Description<br />

Get a file from 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 file on the server to be downloaded to the client<br />

machine.<br />

dest Quoted string that contains the full path on the client machine for where to put the copy of the<br />

file downloaded from the server.<br />

<strong>SAS</strong> Get File Names("fileref")<br />

Description<br />

Get a list of filenames found in the given fileref on the active global <strong>SAS</strong> server connection.<br />

Returns<br />

List of strings.<br />

Arguments<br />

"fileref" Quoted string that contains the name of the fileref from which to retrieve filenames.<br />

<strong>SAS</strong> Get File Names In Path("path")<br />

Description<br />

Get a list of filenames found in the given path on the active global <strong>SAS</strong> server connection.<br />

Returns<br />

List of strings.<br />

Arguments<br />

"path" Quoted string that contains the directory path on the server from which to retrieve filenames.<br />

<strong>SAS</strong> Get File Refs()<br />

Description<br />

Get a list of the currently defined <strong>SAS</strong> filerefs on the active global <strong>SAS</strong> server connection.

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

Saved successfully!

Ooh no, something went wrong!