Greg, Happy to help. As long as you are reading up on the details, here are a couple of items to consider. They may not be needed in this particular application. First, the length of Y will be 156. When SUBSTR creates a new variable, the new variable's length is the same as that of the incoming string. Second, SUBSTR can appear on the left-hand side of an assignment statement. This would be legal: substr(x, _n_, 2) = Y; Or simply eliminate the creation of Y: substr(x, _n_, 2) = substr(value, _n_, 2); This would become important if it were possible for VALUE to contain embedded blanks. (I know that won't happen here where you have hex codes.) In that case, the CATS function would remove them. Good luck.
... View more