ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Debug SQLCBL program

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Debug SQLCBL program

    Hi everyone,


    can any one tell me how i debug sqlcbl program in as/400. when i try to use it using STRISDB command it gives error program is not compiled with proper option .

    i use option with *SRC to compile the program.

    Please suggest .

  • #2
    Re: Debug SQLCBL program

    try using STRDBG

    Comment


    • #3
      Re: Debug SQLCBL program

      It does not work as it is SQLCBL program not an SQLCBLLE . as Strdbg work only in ILE .

      Comment


      • #4
        Re: Debug SQLCBL program

        Hi,

        STRDBG works also for OPM Programs:

        1. Recompile your Cobol Program with Option(*LSTDBG)
        PHP Code:
        CRTSQLCBL PGM(MYLIB/MYPGM)  
                  
        SRCFILE(QCBLSRC)  
                  
        COMMIT(*NONE)     
                  
        OPTION(*LSTDBG
        2. Specify OPMSRC(*YES) in the STRDBG command
        PHP Code:
        STRDBG PGM(MYLIB/MYPGM
               
        OPMSRC(*YES
        Birgitta

        Comment

        Working...
        X