sponsored links

Collapse

Announcement

Collapse
No announcement yet.

Pointer not set for location referenced

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

  • Pointer not set for location referenced

    Using RPG OK but convert to RPGLE not OK.

    After convert from RPG to RPGLE, the error message "Pointer not set for location referenced" appear upon perform the RPGLE.

    Please help and advise.

  • #2
    Re: Pointer not set for location referenced

    may we see some of the code? It seems to be a PARM thing!


    jamie
    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: Pointer not set for location referenced

      When I get this message, it usually means that the program is expecting to receive an input parameter that I did not pass to it when I called it. The detail text of the message should point to the variable, or the line of code in the program that contains the variable, that is causing you the problem.
      "Time passes, but sometimes it beats the <crap> out of you as it goes."

      Comment


      • #4
        Re: Pointer not set for location referenced

        OK & TQ.
        I will try to debug it.

        Comment


        • #5
          Re: Pointer not set for location referenced

          I have did the debug found after perform Indicator "01" for 1st record the step will goto end of source and give the above msg. Now, i will using back to RPG instead of RPGLE.

          Comment


          • #6
            Re: Pointer not set for location referenced

            I have few program same error ocurrs when convert from RPG to RPGLE (CVTRPGSRC). Normally 1) I will use back the original RPG program. 2) Create New RPGLE and re-do the RPG logic instead of using CVTRPGSRC. Any advise to avoid re-do/new in RPGLE.

            Comment


            • #7
              Re: Pointer not set for location referenced

              Hi

              We did CVTRPGSRC many years ago, but can't remember such troubles.
              Must be a CALL problem anyway.
              Check parameters on CALL.
              Everything I remember, we had to comment/remove FREE opcodes.
              LP Zdenko

              Comment


              • #8
                Re: Pointer not set for location referenced

                TQ for reply/help.
                1) No FREE opcodes on RPG/RPGLE.
                2) Check the parameter on CALL OK upon debug (CLLE and RPGLE).
                3) I using CLLE to CALL the RPGLE.

                Code on CLLE in summary:
                OVRDBF FILE(FILE01) SHARE(*YES)
                OPNQRYF FILE((FILE01)) QRYSLT(&QRY01)
                KEYFLD((FIELD01))
                CALL PGM(PGM01) PARM(&P01 &P02 &P03 &P04 &P05)
                CLOF OPNID(FILE01)
                DLTOVR FILE(*ALL)

                Comment


                • #9
                  Re: Pointer not set for location referenced

                  Please show us the definitions for the variables in the Clle.
                  Please show us the *Entry PList for the RPG along with the definition of the parameters.

                  Thanks.
                  Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

                  Comment


                  • #10
                    Re: Pointer not set for location referenced

                    I checked so many time, no problem on parm.


                    RPGLE Source
                    C************************************************* **************
                    C *ENTRY PLIST
                    C PARM P01 8
                    C PARM P02 30
                    C PARM P03 30
                    C PARM P04 3
                    C PARM P05 6

                    CLLE Source
                    DCL VAR(&P01) TYPE(*CHAR) LEN(8)
                    DCL VAR(&P02) TYPE(*CHAR) LEN(30)
                    DCL VAR(&P03) TYPE(*CHAR) LEN(30)
                    DCL VAR(&P04) TYPE(*CHAR) LEN(3)
                    DCL VAR(&P05) TYPE(*CHAR) LEN(6)
                    CALL PGM(PGM01) PARM(&P01 &P02 &P03 &P04 &P05)

                    Comment


                    • #11
                      Re: Pointer not set for location referenced

                      YOu posted the CL that calls your RPG but not the RPG.
                      This is where the problem is not in your CL.

                      jamie
                      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


                      • #12
                        Re: Pointer not set for location referenced

                        Did i need to upload my entire source code (Old source CLP&RPG, Converted Source New source CLLE & RPGLE) and how?

                        Comment


                        • #13
                          Re: Pointer not set for location referenced

                          no just the *plist to your RPG...The error is in your RPG not the CL.


                          jamie
                          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


                          • #14
                            Re: Pointer not set for location referenced

                            How to include source code in your posts.
                            "Time passes, but sometimes it beats the <crap> out of you as it goes."

                            Comment


                            • #15
                              Re: Pointer not set for location referenced

                              Hi PHUATEST. I looked over the parms and they look good. My next thought is that you either the rpg or cl is not in your library list. So you are calling a program but it is really the old program with different Plists. Maybe?
                              Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

                              Comment

                              sponsored links

                              Collapse

                              Working...
                              X