RPGLE Build in function (BIF)
0 pts.
0
Q:
RPGLE Build in function (BIF)
RPG
It is imposable for me to set the length of Variable-Length Field

D ServUser S 30A VARYING
D IDLenth S 3i 0

C Eval %Len(ServUser) = IDLenth
After this statement length of field ServUser still is 30 pos long. In Debug mode I get the message CPF7E2B: Type compatibility error occurred.
Thank you for helping.
Igor Kreymer
ASKED: Oct 18 2005  10:52 AM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
0 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
I think you can't set the size of that field. It gets input like a string of 5 chars. At that time the field will be 5 big. Why would you do this, with the %Len BIF?
Last Answered: Oct 23 2005  7:58 AM GMT by WDSharp   0 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

TomLiotta   8025 pts.  |   Nov 15 2009  12:11PM GMT

What is the value of IDLenth at the time of execution? Are there multiple definitions of ServUser?

Tom

 
0