02.05.2013 Views

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

SAS(R) 9.1.3 Companion for z/OS

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<br />

8<br />

<strong>SAS</strong> Interfaces to ISPF and REXX<br />

<strong>SAS</strong> Interface to ISPF 184<br />

Software Requirements 184<br />

Enabling the Interface 184<br />

Invoking ISPF Services 184<br />

Using the ISPEXEC CALL Routine 185<br />

Using the ISPLINK CALL Routine 186<br />

Testing ISPEXEC and ISPLINK Return Codes 186<br />

Using ISPF Dialog Development Models 186<br />

Using Special <strong>SAS</strong> System Options with the Interface 186<br />

Changing the Status of ISPF Interface Options during Execution of a DATA Step 187<br />

Using the ISPF Editor from Your <strong>SAS</strong> Session 188<br />

Copying ISPF EDIT Models to Your <strong>SAS</strong> Session 188<br />

Using Special Facilities <strong>for</strong> Passing Parameters to ISPF 189<br />

Variable-Naming Conventions 189<br />

Specifying Fixed Binary Parameters 189<br />

Passing Parameters That Are Longer Than 200 Bytes 190<br />

Bypassing Parameter Processing 190<br />

Accessing <strong>SAS</strong> Variables from ISPF 190<br />

VDEFINE, VDELETE, and VRESET Services 190<br />

Handling Numeric Variables 191<br />

Handling Character Variables 191<br />

Examples of Defining Variables 192<br />

Tips and Common Problems 193<br />

Checking <strong>for</strong> Invalid Values in <strong>SAS</strong> Variables 193<br />

Checking <strong>for</strong> Null Values in ISPF Variables 193<br />

Truncated Values <strong>for</strong> Numeric Variables 193<br />

Uninitialized Variables 193<br />

Character Values Passed <strong>for</strong> Numeric Variables 194<br />

Testing ISPF Applications 194<br />

Sample Application 194<br />

Employee Records Application 194<br />

Contents of Member <strong>SAS</strong>EMPLA in ISPPLIB 195<br />

First Employee Record Application Panel 196<br />

Contents of Member <strong>SAS</strong>EMPLB in ISPPLIB 197<br />

Second Employee Record Application Panel 198<br />

Contents of Member <strong>SAS</strong>X21 in ISPMLIB 198<br />

<strong>SAS</strong> Interface to REXX 199<br />

Enabling the Interface 199<br />

Invoking a REXX Exec 199<br />

Interacting with the <strong>SAS</strong> Session from a REXX Exec 200<br />

Routing Messages from REXX Execs to the <strong>SAS</strong> Log 200<br />

183

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

Saved successfully!

Ooh no, something went wrong!