is there any restriction when using %LEN(Fld: *Max) in composition with datastructure subfields?
Or am I missing a PTF, if so which one?
Under release V5R4 I used the following statement to call a procedure:
Wx_ManChgFldVarChar( 'WDUSERNAME': %Addr(GblDSTXDATEP.UserName): '': *%Size(GblDSTXDATEP.UserName) - 2*: 'Output');
Because I had to hardcode the number of prefixed bytes, I wanted to determine the maximum length for the varying length field under Release 7.1 with %LEN() and changed the call statement as follows:
Wx_ManChgFldVarChar( 'WDUSERNAME': %Addr(GblDSTXDATEP.UserName): '': *%Len(GblDSTXDATEP.UserName: *Max)*: 'Output');
When compiling this code under release 7.1 I get a strange compile error.
*RNF5410 30 1 Prototype for procedure call not defined.
If I reset my procedure call to the version I used under release V5R4M0, I get my module compiled.
Thanks in advance