Also, I have defined WS-INLENGTH as S9(04) comp... This will determine the length of WS-INDATA in request container. We can say WS-INDATA is just another variable defined in input area, its not the whole input area..
On the other hand, FLENGTH determines the maximum length of whole input area passed (WS-INLENGTH + WS-INDATA in my case).
So how does FLENGTH is affected by WS-INLENGTH S(04) comp. ?
In other words, suppose my input copybook has 3 variables X,Y, and Z. So, FLENGTH should capture the total length of X,Y,Z. It should not be affected by what relation X,Y,Z hold with each other.
Let me know if my understanding is incorrect.