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.

Chapter 3 Getting Started 41<br />

Capturing a Script for a Data Table<br />

Capturing a Script for a Data Table<br />

The basic steps for capturing a script to reproduce a data table are as follows:<br />

1. Open the data table.<br />

2. Make any changes that you need. For example, add a script, correct values, add new columns.<br />

3. Capture the script to recreate your data table.<br />

Example<br />

Use the data table from the previous example, where you saved a script to it.<br />

1. In the data table, select the red triangle next to the data table’s name.<br />

2. Select Copy Table Script.<br />

Figure 3.3 Copy the Table Script<br />

3. Open a script window by selecting File > New > Script.<br />

4. Select Edit > Paste.<br />

You now have a script that duplicates your data table. You can save this script and run it at any time to<br />

recreate your data table, with all its scripts attached.<br />

Capturing a Script to Import a File<br />

To capture a script that imports a file, you open the file in JMP. JMP automatically records the steps that<br />

occurred when you opened the file.<br />

Import a Text File<br />

1. Select File > Open.<br />

The Open Data File window appears.

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

Saved successfully!

Ooh no, something went wrong!