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.

68 Import Your Data Chapter 3<br />

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

– Save all members Saves the file as a <strong>JMP</strong> file as soon as you open it. The file is saved to the same<br />

directory where the <strong>SAS</strong> transport file was opened. On Macintosh, the option is Save all.<br />

– Select Columns Tells <strong>JMP</strong> to open only certain columns from the transport file. Select the<br />

columns that you want to import from the list that appears. On Macintosh, the option is Select<br />

columns before opening.<br />

5. Click Open.<br />

Note: If you are importing date variables from a <strong>SAS</strong> file, <strong>JMP</strong> looks for a <strong>SAS</strong> date format and translates it<br />

to a <strong>JMP</strong> date column.<br />

Create <strong>SAS</strong> Transport Files in <strong>SAS</strong><br />

<strong>JMP</strong> can open <strong>SAS</strong> transport files that were saved using the <strong>SAS</strong> XPORT engine. For example, below is<br />

sample <strong>SAS</strong> code that creates a transport file called test.<br />

Note: misc and work are <strong>SAS</strong> libref names.<br />

data test;<br />

input name $ age weight;<br />

cards;<br />

Susan 12 72<br />

Melanie 10 68<br />

Jonathan 11 77<br />

Sheila 13 67<br />

;<br />

libname misc xport 'C:/test.xpt';<br />

proc copy in=work out=misc;<br />

run;<br />

Connect to <strong>SAS</strong><br />

You can either connect to a <strong>SAS</strong> Metadata Server or directly to a <strong>SAS</strong> Workspace Server. Once connected to<br />

a <strong>SAS</strong> Metadata Server, you can browse through <strong>SAS</strong> servers, libraries, and data sets.<br />

Note: The earliest supported release of the <strong>SAS</strong> Metadata Server is version 9.1.3 SP4. Connections to<br />

earlier releases of the <strong>SAS</strong> Metadata Server are experimental and are not supported.<br />

To connect to a <strong>SAS</strong> server, click File > <strong>SAS</strong> > Server Connections. The <strong>SAS</strong> Server Connections window<br />

in Figure 3.10 appears. All connections are made in this window.

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

Saved successfully!

Ooh no, something went wrong!