I am making an if in SAS to declare the value that a variable will receive depending on the condition, however when I say that the variable will receive a string of size up to 3 it returns correctly but indicating that it will receive a string of size 4 or higher, it returns only the first 3 characters!
Example Code:
IF RECEITA 1000000 AND RECEITA_ LE 10000000 THEN
P = '>1'||'M';
ELSE IF RECEITA 10000000 THEN
P = '>10'||'M';
In the first case it returns correctly, ie> 1M. In the second case it returns > 10, missing the character 'M'.
I have already tried functions such as cat and substr, and even just declare, for example, P="> 10M", but the same problem happens.