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 10 <strong>Scripting</strong> Platforms 311<br />

Launching Platforms Interactively and Obtaining the Equivalent Script<br />

Launch a Platform<br />

1. Open the Big Class sample data table.<br />

2. Select Fit Y by X from the Analyze menu.<br />

3. Select height and click Y, Response.<br />

4. Select age and click X, Factor.<br />

5. Click OK.<br />

Save Script<br />

All analysis platforms have a Script submenu with the commands shown here to create a JSL script that<br />

duplicates the analysis in its current state. These commands are choices for where to send that script.<br />

Redo Analysis Launches a new copy of the platform, rebuilding all the analyses as specified. This is<br />

useful for updating your results when the state of the data table has changed. For example, after you fix<br />

errors in the data table, select a subset, add more data, and so on.<br />

Relaunch Analysis<br />

report.<br />

Automatic Recalc<br />

Opens the launch window, already filled in with what is needed to produce the<br />

Turns Automatic Recalc on or off.<br />

Copy Script Copies the script that reproduces the report onto the clipboard. You can then paste the script<br />

into a script window or another application.<br />

Save Script to Data Table Saves the script as a new property in the data table. In the data table window,<br />

you see the script named for the platform, and it has a pop-up menu to let you Run Script. Properties<br />

such as saved scripts are saved with the data table for later use. Many sample data tables have example<br />

scripts.<br />

Save Script to Journal Saves a button to the current journal (or a new one, if a journal is not open) that<br />

runs a script to reproduce the report.<br />

Save Script to Script Window Presents the script for the current state of the platform in a script<br />

window, where you can view, edit, and submit it.<br />

Save Script to Report Saves the script in a text box at the top of the report. The script to reconstruct an<br />

analysis is available in any journals that you might save, as well as in the platform window itself. This<br />

also serves as a concise overview, listing all the report’s analyses and their parameter settings.<br />

Save Script for All Objects Saves the script for all objects within a multi-platform report in a script<br />

window, where you can view, edit, and submit it. An example is Fit Y by X, where various combinations<br />

of continuous, nominal, and ordinal columns result in Bivariate, Oneway, Contingency, and Logistic<br />

platform objects all within a single report. Save Script to Script Window saves only the script for<br />

the single object from which you selected the option. Save Script for All Objects saves the<br />

script for all objects within the window, regardless of which object’s menu option you used. Another<br />

example is that if you have By groups, Save Script for All Objects saves the script for all the BY<br />

group objects within the window, whereas Save Script to... captures the script for only the one

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

Saved successfully!

Ooh no, something went wrong!