Chapter Contents |
Previous |
Next |
COMPBL |
Category: | Character |
Syntax | |
Arguments | |
Details | |
Comparisons | |
Examples | |
See Also |
Syntax |
COMPBL(source) |
Details |
The COMPBL function removes multiple blanks in a character string by translating each occurrence of two or more consecutive blanks into a single blank.
The value that the COMPBL function returns has a default length of 200. You can use the LENGTH statement, before calling COMPBL, to set the length of the value.
Comparisons |
Examples |
SAS Statements | Results |
---|---|
----+----1----+----2-- |
|
string='Hey Diddle Diddle'; string=compbl(string); put string; |
Hey Diddle Diddle |
string='125 E Main St'; length address $10; address=compbl(string); put address; |
125 E Main |
See Also |
Function:
|
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.