I know defining a sqltype(clob:xx) field causes the RPG compiler to generate related fields with _data and _len.  If setting the clob in RPG, you'd want to set those 2 fields and then the clob field can be used in SQL statements.
I recall seeing a error situation when I tried to directly access the clob field outside a SQL statement (regular RPG lines of code).  I looked into documentation but didn't see anything directly stating this.  I just ran a test and using the clob in RPG worked, but I'm nervous that something I experienced in the past could become a problem if I do this.  Maybe there was a fix, or maybe I'm "just getting lucky" in my test now, but I want to be certain of the technique that should be used.
My question is: can I directly access this type of field outside a SQL statement, or should I always use the _data/_len fields in that situation?
Thanks!
------------------------------
Dave Weissman
------------------------------
#SQL