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!
value $ fastformat (default=8)
"VIN" = "Diesel"
other = "Gasoline"
;
1
value $ 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.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.