14.03.2014 Views

Using JMP - SAS

Using JMP - SAS

Using JMP - 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.

Chapter 3 Import Your Data 81<br />

Import Data from <strong>SAS</strong><br />

To select and run a stored process:<br />

1. Select File > <strong>SAS</strong> > Browse <strong>SAS</strong> Folders.<br />

The Browse <strong>SAS</strong> Folders window appears.<br />

2. Browse through the stored processes to find the one that you want to run.<br />

3. Select it and click Run.<br />

The data opens as a <strong>JMP</strong> data table.<br />

On Windows, you can also right-click a stored process and select Copy Metadata Path. This option copies<br />

the path to the clipboard. You can then paste it into a script window to include it as a parameter for the JSL<br />

operator Meta Get Stored Process(). For more information, see the Scripting Guide.<br />

Note: Static graphs might not appear in the results returned from a <strong>SAS</strong> stored process when streaming<br />

output is selected.<br />

Stored processes send reports to HTML by default, but you can select RTF or PDF instead on the <strong>SAS</strong><br />

Integration page of the <strong>JMP</strong> preferences. Select File > Preferences (Windows) or <strong>JMP</strong> > Preferences<br />

(Macintosh) to view the <strong>JMP</strong> preferences.<br />

Submit <strong>SAS</strong> Code<br />

You can submit <strong>SAS</strong> code directly from <strong>JMP</strong> to the currently active <strong>SAS</strong> server. If the submitted <strong>SAS</strong> code<br />

generates <strong>SAS</strong> Listing output, that output is automatically retrieved from the <strong>SAS</strong> server and displayed in<br />

<strong>JMP</strong>. Also, the generated <strong>SAS</strong> Log is retrieved, and, if there are any errors in the submitted code, the <strong>SAS</strong><br />

Log is automatically displayed in the <strong>SAS</strong> Log window.<br />

Figure 3.22 <strong>SAS</strong> Code Submission Example<br />

<strong>SAS</strong> Code<br />

data a;<br />

x=1;<br />

<strong>JMP</strong> Code to Submit <strong>SAS</strong> Code<br />

<strong>SAS</strong> Connect("sasmain");<br />

<strong>SAS</strong> Submit("data a; x=1; proc print; run;");<br />

proc print;<br />

run;<br />

To run <strong>SAS</strong> code directly from <strong>JMP</strong>:<br />

1. Either open an existing <strong>SAS</strong> program using File > Open, or create a new <strong>SAS</strong> program. (Create a new<br />

<strong>SAS</strong> program by selecting File > <strong>SAS</strong> > New <strong>SAS</strong> Program and typing in the <strong>SAS</strong> code.)<br />

2. Click the Submit to <strong>SAS</strong> icon .<br />

You can also right-click in the Program Editor window and select Submit to <strong>SAS</strong>. The menu item also<br />

includes the name of the active <strong>SAS</strong> server that the <strong>SAS</strong> code will be submitted to.<br />

You can also press the F8 key (press COMMAND-SHIFT-R on Macintosh).

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

Saved successfully!

Ooh no, something went wrong!