ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

how to debug sqlrpg prg?

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

  • how to debug sqlrpg prg?

    How to track flow of sqlrpg prg?
    is it by debug?
    then how to debug sqlrpg/sqlrpgle?

    deepa

  • #2
    Re: how to debug sqlrpg prg?

    You would debug the same as if it were just plain old RPG

    STRDBG updprod(*YES)
    Last edited by jimmyoctane; August 10, 2005, 08:57 AM.
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: how to debug sqlrpg prg?

      In debug screen you can take F21 to get a command line & then do a runqry to see data loaded in SQLfile.

      Comment


      • #4
        Re: how to debug sqlrpg prg?

        Originally posted by Deepa View Post
        How to track flow of sqlrpg prg?
        is it by debug?
        then how to debug sqlrpg/sqlrpgle?

        deepa

        STRDBG will work only if you have specified DBGVIEW(*SOURCE) in CRTSQLRPGI command.
        "What must be done, must be well done."
        My father...

        Comment


        • #5
          Re: how to debug sqlrpg prg?

          hi,

          U can debug by taking F4 against option 14 and in compiler options *XREF and in debugging views enter *Source..
          'Coding = Experience'
          hsp

          Comment


          • #6
            Re: how to debug sqlrpg prg?

            Originally posted by hsp View Post
            hi,

            U can debug by taking F4 against option 14 and in compiler options *XREF and in debugging views enter *Source..
            I always wondered... What's the use of *XREF? Is it a must when debugging SQLRPGLE code?

            Thanks!
            "What must be done, must be well done."
            My father...

            Comment


            • #7
              Re: how to debug sqlrpg prg?

              Yes.. one must have to use this while debugging the sqlrpgle..
              'Coding = Experience'
              hsp

              Comment


              • #8
                Re: how to debug sqlrpg prg?

                Originally posted by hsp View Post
                Yes.. one must have to use this while debugging the sqlrpgle..
                Okie doke, just noticed this parameter was set to *XREF by default on our systems.

                Thanks.
                "What must be done, must be well done."
                My father...

                Comment

                Working...
                X