Published on :
Macro CREATION_INTERNE

Retrieving Autocall Paths (SASAUTOS)

This code is also available in: Deutsch Español Français
Awaiting validation
This code snippet defines a macro named %getautos. It initiates a DATA step intended to create an output table containing the paths defined in the SASAUTOS system option. The code uses the `getoption` function to read this system configuration. Note: The provided code is incomplete and stops in the middle of the DATA step.
Data Analysis

Type : CREATION_INTERNE


Data is generated by SAS system introspection via the `getoption('sasautos')` function.

1 Code Block
DATA STEP Data
Explanation :
Start of the macro and DATA step. Variables are dimensioned (notably 'q' to 32000 characters to potentially contain a long list of paths) and the SASAUTOS option is stored in the 'q' variable.
Copied!
1%macro getautos(out=paths);
2 
3 DATA &out ( keep = path ) ;
4 LENGTH q $ 32000 temp $ 300 var path $ 255 ;
5 q = getoption ( "sasautos" ) ;
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.