Chapter 28
Stored Compiled DATA Step
Programs
Definition of a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . . . . . . . . 679
Uses for Stored Compiled DATA Step Programs . . . . . . . . . . . . . . . . . . . . . . . . . . 680
Restrictions and Requirements for Stored Compiled DATA Step Programs . . . . 680
How SAS Processes Stored Compiled DATA Step Programs . . . . . . . . . . . . . . . . . 680
Creating a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . . . . . . . . . . . 681
Syntax for Creating a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . . 681
Process to Compile and Store a DATA Step Program . . . . . . . . . . . . . . . . . . . . . . 681
Example: Creating a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . . . 682
Executing a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . . . . . . . . . . 683
Syntax for Executing a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . 683
Process to Execute a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . . . 684
Using Global Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 684
Redirecting Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 684
Printing the Source Code of a Stored Compiled DATA Step Program . . . . . . . . . 685
Example: Executing a Stored Compiled DATA Step Program . . . . . . . . . . . . . . . . 685
Differences between Stored Compiled DATA Step Programs
and DATA Step Views . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 686
Example of DATA Step Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687
Quality Control Application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 687
Definition of a Stored Compiled DATA Step
Program
A stored compiled DATA step program is a SAS file that contains a DATA step program
that has been compiled and then stored in a SAS library. You can execute stored
compiled programs as needed, without having to recompile them. Stored compiled
DATA step programs are of member type PROGRAM.
Note: Stored compiled programs are available for DATA step applications only. Your
stored programs can contain all SAS language elements except global statements. If
you do include global statements in your source program, SAS stores the compiled
program. However, SAS does not store the global statements, and it does not display
a warning message in the SAS log.
679
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.146.176.145