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.

540 Common Tasks Chapter 16<br />

Create an Interactive Program<br />

Figure 16.9 Customized Report from the Bivariate Analysis<br />

Create an Interactive Program<br />

How do you gather numeric input from the users, perform a calculation on that input, and show the results<br />

in a new window?<br />

Prime Numbers.jsl (Figure 16.10 and Figure 16.11) asks the user to enter a number and then factors the<br />

number or confirms it as a prime number (Figure 16.12). This script is a good example of aligning several<br />

types of display boxes, concatenating text, and working with conditional functions.

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

Saved successfully!

Ooh no, something went wrong!