The PROC Step or Procedure Step processes one (or more) data set(s) in some way to produce a result. This step is one of two types of SAS program steps, the other being a DATA Step, both are fundamental components of the SAS Language.
- 1 Syntax
- 2 Procedures
- 3 Statements that can be used in Procedure steps
- 4 See also
- 5 Further Reading
- Zero or more statements that can be used in a procedure, this varies depending on the procedure.;
- See Index (Procedures) for a list.
There are many SAS procedures (or PROC's).
Producing Report Output
One of the major uses of procedures is to produce lists, tables and graphics representations of data that can be included in documents, web pages, or printed reports.
Another use of procedures is to process data in particular ways. These procedures do not produce report output.
Importing and exporting data
Some procedures are used to manage the SAS system.
- CATALOG procedure
- DATASETS procedure
- DELETE procedure
- FORMAT procedure
- OPTIONS procedure
- SETINIT procedure
Statements that can be used in Procedure steps
The following statements are considered global statements that can be used in any procedure. These statements can be used in open code or DATA steps as well.
For source code documentation:
For output reporting control:
- ODS statements; (See Output Delivery System and SAS Output Delivery System: User's Guide for more information.)
- TITLE statement;
- FOOTNOTE statement;
For operating environment control:
For SAS LOG formatting:
For including or running SAS source code from another source:
- For more information see SAS Language Reference: Dictionary .
Generic statements have the same function in all of the procedures that support them. Although they cannot be used in every procedure, if they can be used then they have the same syntax and operate in the same way.:
- ATTRIB statement;
- BY statement;
- FORMAT statement;
- LABEL statement;
- FREQ statement;
- WEIGHT statement;
- WHERE statement;
Some statements are used in more than one procedure. The same keyword generally implies that the statement should have a similar conceptual behavior or effect. However the exact functionality, syntax and usage is often procedure specific, so the specific procedure documentation should always be consulted.:
The SQL procedure implements SQL in SAS. Some of the keywords used in SQL are the same as keywords used by other SAS statements, however the syntax is often very different.
Procedure Step boundary statements
Certain statements mark the end of a procedure step and result in the PROC step being processed and executed.
- QUIT statement;
- ENDSAS statement;
- DATA statement;
- PROC statement;
- The end of the program's batch file in batch mode.
Note that the RUN statement can also be used to run a procedure, but will not necessarily end the procedure.
- Version 9.3 Documentation: SAS® 9.3 Language Reference: Concepts, Second Edition
- SAS procedures by name and product