Hi, I'm tring to substring a character field (eg. 00000000012345678912) in proc sql and and need to convert it to numeric. I only need the 1234567891 from the field (position 10 for 11 fields). I'm using this format : cast((substr( AR_NO,10,11)) as integer) as AR_NO_SUB , but getting an error (below) ERROR: Teradata row not delivered (trget): Overflow occurred computing an expression involving DB.AR_NO. if I do cast((substr( AR_NO,4,11)) as integer) as AR_NO_SUB i get 69267, but if I do cast((substr( AR_NO,5,11)) as integer) as AR_NO_CUB I get the error as above in red. Thankss for your help.
... View more