U bent hier

i

Write correct UTF-8 directly to IFS from RPGLE

Tired of always needing an encapsulating CLLE around your RPGLE to do some administrative IFS-file-work like copying the file to convert from EBCDIC to UTF-8? And what about the byte-order-mark that is not added automatically when converting to unicode UTF-8, but which MS Excel requires (non-standard)?

Then you might want to take a look at this sample code...

BRMS breaks usage of DB2 API QZDFMDB2

Running these commands result in successful process return code:

CRTPF FILE(QTEMP/XYZ) RCDLEN(50)     

CALL PGM(QZDFMDB2) PARM('DROP TABLE QTEMP.XYZ')

(Result: "DB20000I  THE SQL COMMAND COMPLETED SUCCESSFULLY.")

While if you run these same commands, but in between go into a BRMS function (just go into the command and exit it immediately with F3 is enough), like here:

CRTPF FILE(QTEMP/XYZ) RCDLEN(50)

WRKMEDBRM

CALL PGM(QZDFMDB2) PARM('DROP TABLE QTEMP.XYZ')