When accessing a LOB-File, the data length is returned in MYLOB_DL.
So it is possible to read exactly the returned data into a RPG Variable (with an SQL SET Statement).
Mit freundlichen Grüßen / Best regards
"Shoot for the moon, even if you miss, you'll land among the stars." (Les Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them and keeping them!"
„Train people well enough so they can leave, treat them well enough so they don't want to.“ (Richard Branson)