Search results with tag "Substr function"
059-30: A Clever Demonstration of the SAS® SUBSTR Function
www2.sas.comPaper 059-30 A Clever Demonstration of the SAS® SUBSTR Function David J. Austin, Quintiles, Inc., Kansas City, MO ABSTRACT The SAS® SUBSTR function differs from the substring function in other programming languages as it can be used on
Chapter 1 Character Functions - SAS
support.sas.comSUBSTR function the longest length it possibly could—the length of the string from which you are taking the substring. Finally, the variable REP is created by using the REPEAT function. As you will find out later in this chapter, the REPEAT function takes a string and repeats it as many times as directed by the second argument to the function.
056-2009: Using IN:( ) to code Character Comparisons with ...
support.sas.comsubstr( ZIP_code, 1, 4 ) = ‘0138’ ; This approach certainly does the job but the code is verbose and cluttered (and probably inefficient as well). This condition only worsens as the complexity of the comparison increases. We could improve this code by executing the SUBSTR function calls before the comparison statement and assigning