03-07-2013 12:54 PM
I'm getting teh folloiwng error: Invalid third argument to function SUBSTR
The variable cdcode is text and 14 characters long.
Here's my code:
length co $2 dist $5 sch $7;
Can you help me understand why I'm getting this message?
03-07-2013 01:18 PM
from the reference manual
"Interaction:If length is zero, a negative value, or larger than the length of the expression that remains in string after position, SAS extracts the remainder of the expression. SAS also sets _ERROR_ to 1 and prints a note to the log indicating that the length argument is invalid."
Need further help from the community? Please ask a new question.