Published on :
ETL CREATION_INTERNE

FASTFORMAT Format Definition

This code is also available in: Deutsch Español Français
Awaiting validation
The SAS© code creates a character format ($) named 'fastformat'. This format assigns the value 'Diesel' when the input is 'VIN' and 'Gasoline' for all other input values. This type of format is commonly used to standardize data categories or to improve report readability by displaying more descriptive labels instead of raw codes.
Data Analysis

Type : CREATION_INTERNE


The script does not read external data or existing SAS tables. It defines a transformation rule (a format) that will be applied to data later. The format itself is an entity created internally by the script.

1 Code Block
PROC FORMAT Data
Explanation :
This block defines the character format named 'fastformat'. The `(default=8)` clause specifies the default length for displaying formatted values. The rule 'VIN' = 'Diesel' assigns the string 'Diesel' if the input value is 'VIN'. The rule 'other' = 'Gasoline' is a catch-all that assigns 'Gasoline' to any other input value not explicitly defined, which is useful for grouping remaining categories.
Copied!
1value $ fastformat (default=8)
2 "VIN" = "Diesel"
3 other = "Gasoline"
4 ;
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.
Copyright Info : File generated with help of SAS Packages Framework, version 20241027.