Nicnad, Have you read the documentation? That is not what the LEFT and RIGHT functions do. They are character string functions that just align the non-space part to the left or right in the string. If the date filed is a text string, then you can get the first 4 characters as 2007 by left(TXNS.DateOperation,4) =: "2007" (not the "=:" operator). If it is a SAS Date variable, then it would be year(TXNS.DateOperation) = 2007 It looks like MontantOperation is numeric, in which case you need to either convert it to a string and pick off the last two characters (check RIGHT, LENGTH, and SUBSTR documentation for syntax; there are other ways possible (like reversing the string)). Or by using some mathematical identities. If montantoperation is an integer, this should work floor(montantoperation/100) = montantoperation to pick off numbers that are multiples of 100. Doc Muhlbaier Duke
... View more