Really scratched my head with this error!
Every RPGLE and CLLE program is compiling with no problems... but every SQLRPGLE is failing with this error: The source file CCSID 1208 is a Unicode CCSID which cannot be used with TGTCCSID(SRC)
Add this to your SQLRPGLE defaults: COMPILEOPT('TGTCCSID(*JOB)')
We can fix this with two main techniques:
Change Command Default
Change the green screen compile default:
CHGCMDDFT CMD(CRTSQLRPGI) NEWDFT('COMPILEOPT(''TGTCCSID(*JOB)'')')
Change Action
Change the action values in Code for IBM-i.
Edit actions.json in your .vscode folder :
add COMPILEOPT('TGTCCSID(*JOB)') to the action string.



