Previous Page | Next Page

The FCMP Procedure

Syntax: FCMP Procedure


Table of Contents: The FCMP Procedure

PROC FCMP options;
ABORT;
ARRAY array-name[dimensions] </NOSYMBOLS | variables | constants | (initial-values)>;
ATTRIB variables <FORMAT=format-name LABEL='label' LENGTH=length>;
DELETEFUNC | DELETESUBR function-name;
FUNCTION function-name(argument-1, ..., argument-n) <VARARGS > <$> <length> <KIND | GROUP='string'>;
LABEL variable='label';
LISTFUNC | LISTSUBR function-name;
STRUCT structure-name variable;
SUBROUTINE subroutine-name (argument-1, ..., argument-n) <VARARGS> <LABEL='label'> <KIND | GROUP='string'>;
OUTARGS out-argument-1, ..., out-argument-n;

Task Statement
Create, test, and store SAS functions for use by other SAS procedures. PROC FCMP
Terminate the execution of the current DATA step, SAS job, or SAS session. ABORT
Associate a name with a list of variables and constants. ARRAY
Specify format, label, and length information for a variable. ATTRIB
Delete a function from the function library that is specified in the OUTLIB option. DELETEFUNC | DELETESUBR
Return changed variable values. FUNCTION
Specify a label for variables. LABEL
Write the source code of a function in the SAS listing. LISTFUNC | LISTSUBR
Declare (create) structure types. STRUCT
Declare (create) independent computational blocks of code. SUBROUTINE
(Use only with the SUBROUTINE statement.) Specify arguments from the argument list that the subroutine should update. OUTARGS

You can use DATA step statements with PROC FCMP. However, there are some differences in the syntax and functionality for PROC FCMP. See PROC FCMP and DATA Step Differences for a list of statements and the differences.

The behaviors of the DROP, KEEP, FORMAT, and LENGTH statements are the same in PROC FCMP and in the DATA step.

The following DATA step statements are not supported in PROC FCMP:

The support for the FILE statement is limited to LOG and PRINT destinations in PROC FCMP. The OUTPUT statement is supported in PROC FCMP, but it is not supported within a function or subroutine.

The following statements are supported in PROC FCMP but not in the DATA step:

Previous Page | Next Page | Top of Page