To successfully pass a dynamic length item to a called program you must specify the new "AS FIXED LENGTH" option on the CALL statement. This works fine. However the compiler gives no error if you omit the phrase, even though at run time the call (essentially) fails. Seems like the compiler should not allow this behavior to compile "successfully".
Also somewhat related. The CICS co-processor does not give any "compile" error when an attempt is made to use a dynamic length item in an EXEC CICS statement, even though doing so is not supported. And while I've not tested EXEC SQL, I imagine it has a similar issue.
Speaking of which, is there anything in the works for CICS and DB2/SQL to support using dynamic length items? I imagine there would have to be some sort of implicit conversion to/from fixed-length fields.
------------------------------
Frank Swarbrick
------------------------------