The source file CCSID 1208 is a Unicode CCSID which cannot be used with TGTCCSID(*SRC).

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)

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 the CRTSQLRPI command default with CHGCMDDFT, or
  • Update the CODE for IBM i action to use this compile option (this is my preferred)

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.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>