Published on :
Data Management CREATION_INTERNE

Creating a format for cylinders

This code is also available in: Deutsch Español Français
The script uses the PROC FORMAT procedure to create a numeric format named 'cylf'. This format associates the numeric values 4, 6, and 8 with explicit labels ('4 Cylinders', '6 Cylinders', '8 Cylinders') to improve report readability.
Data Analysis

Type : CREATION_INTERNE


Generation of metadata (formats) without dependency on data tables.

1 Code Block
PROC FORMAT
Explanation :
Use of the VALUE statement to define the mapping between raw values and the character strings to be displayed.
Copied!
1PROC FORMAT;
2VALUE cylf
3 4 = "4 Cylinders"
4 6 = "6 Cylinders"
5 8 = "8 Cylinders"
6 ;
7RUN;
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.