I have a field that is character size 14. I will call that field NRNUM. In the 7, and 8 positions of that field (which is an item number) is the length of the item. In positions 9 and 10 is the width position. How do I go about plucking those out into numeric fields of size two named HEIGHT AND WIDTH? This is what I tried, but it won't compile....
I'm guessing I need to wrap the whole thing in a %dec() too then to make it numeric...
PHP Code:
C EVAL WIDTH = %TRIM(%SUBST(NRNUM:7:8))
C EVAL LENGTH = %TRIM(%SUBST(NRNUM:9:10))
Comment