I want to find length of a field and pad zeroes,but I am not sure whether to do it using INSPECT verd or with intrinsic FUNCTION LENGTH.
Can you tell me the difference between the two approaches?
If your variable is in WORKING-STORAGE, the length does not change, ever. So FUNCTION LENGTH will only return one value no matter what data is stored in the variable. INSPECT allows you to locate the last byte of relevant data in the variable.