Published on :
Utility N/A - Fonction

Function F1

This code is also available in: Deutsch Español Français
The F1 function is a user-defined function in SAS©. It is designed to be called within a DATA step or a procedure that supports user-defined functions. Its only operation is to add 1 to the numeric value passed to it as an argument, and then return this new result.
Data Analysis

Type : N/A - Fonction


The function operates on numeric values passed as arguments during its call; it does not use SASHELP, external, or internally created data in this script for its main operation.

1 Code Block
FUNCTION
Explanation :
This block defines the SAS function 'F1'. It takes a numeric parameter 'n', calculates 'n + 1', and returns this result. User-defined SAS functions can be integrated into DATA steps or procedures to perform custom calculations.
Copied!
1function F1(n);
2 return (n+1);
3endsub;
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.