IBM i – CRTSQLRPG v7r1 – Missing source in STRDBG

Sometimes the defaults on the system prevent browsing source on SQL RPG programs in debug. To prevent this we can add following SQL code to the beginning of your RPG program

EXEC SQL SET OPTION
      NAMING = *SQL,                          
      CLOSQLCSR = *ENDMOD,                    
      COMMIT = *NONE,          
      DATFMT = *ISO,
      COMPILEOPT = 'DBGVIEW(*LIST)';

or add ‘DBGVIEW(*LIST)’ to compiler options COMPILEOPT on command CRTSQLRPGI.

No Comments IBM i

Protected: SSL in IBM i

This content is password protected. To view it please enter your password below:

Protected: Arrays in DB2

This content is password protected. To view it please enter your password below:

Protected: IBM i PASE

This content is password protected. To view it please enter your password below: