CRTSQLRPGI - record length to small
As we can code in **FREE and also include copybooks from the IFS the record length of the default temporary files for creating RPG programs with embedded SQL may be too small.
A workaround is to create a source physical file on your own with an appropriate record length.
CRTSRCPF FILE(QTEMP/QSQLPRE) RCDLEN(200)