Page 1 of 2 12 LastLast
Results 1 to 20 of 27

Thread: Pointer not set for location referenced

  1. #1
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    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. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Posts
    1,000,000
     

  3. #2
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12604

    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

  4. #3
    Moderator littlepd's Avatar
    Join Date
    Mar 2005
    Location
    Lewisville, TX
    Age
    50
    Posts
    1,111
    Rep Power
    3347

    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."

  5. #4
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    Re: Pointer not set for location referenced

    OK & TQ.
    I will try to debug it.

  6. #5
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    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.

  7. #6
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    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.

  8. #7
    Analyst Zdenko's Avatar
    Join Date
    Jun 2005
    Location
    Ziri, Slovenia
    Age
    57
    Posts
    195
    Rep Power
    1172

    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

  9. #8
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    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)

  10. #9
    Analyst DeadManWalks's Avatar
    Join Date
    Mar 2006
    Location
    Atlanta GA
    Posts
    1,581
    Rep Power
    3832

    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.

  11. #10
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    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)

  12. #11
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12604

    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

  13. #12
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    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?

  14. #13
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12604

    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

  15. #14
    Moderator littlepd's Avatar
    Join Date
    Mar 2005
    Location
    Lewisville, TX
    Age
    50
    Posts
    1,111
    Rep Power
    3347

    Re: Pointer not set for location referenced

    "Time passes, but sometimes it beats the <crap> out of you as it goes."

  16. #15
    Analyst DeadManWalks's Avatar
    Join Date
    Mar 2006
    Location
    Atlanta GA
    Posts
    1,581
    Rep Power
    3832

    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?

  17. #16
    Analyst Zdenko's Avatar
    Join Date
    Jun 2005
    Location
    Ziri, Slovenia
    Age
    57
    Posts
    195
    Rep Power
    1172

    Re: Pointer not set for location referenced

    Hi

    What about different versions of the program in different libraries,
    which are included in Yours *LIBL.
    Mybe not the same program, but the same name ?

    Try WRKOBJ OBJ(*ALL/PGMNAME) OBJTYPE(*PGM).
    Last edited by Zdenko; April 5th, 2007 at 06:37 AM.
    LP Zdenko

  18. #17
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    Re: Pointer not set for location referenced

    Thank for reply.
    1) Checked the program and *libl, all in good.
    2) I have debug the RPGLE program line by line and explain in my previous mail, please refer to #5.
    3) The program run in RPG mode Ok but convert to RPGLE (CVTRPGSRC) then the error message appear. Why? is the limitation convert from RPG and RPGLE?
    4) Maybe the RPG itself not using correct/proper programming (old program, previous programmer done it).

  19. #18
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12604

    Re: Pointer not set for location referenced

    we still didnt see your plist in rpg.

    thanks
    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

  20. #19
    Code400 Newbie
    Join Date
    Mar 2007
    Location
    malaysia
    Posts
    12
    Rep Power
    0

    Re: Pointer not set for location referenced

    Sorry to miss out the plist

    Code:
    RPGLE PLIST
    0098.00      C     *ENTRY        PLIST                                                       
    0099.00      C                   PARM                    $RPTCD            8                 
    0100.00      C                   PARM                    $TITL1           30                 
    0101.00      C                   PARM                    $TITL2           30                 
    0102.00      C                   PARM                    BRID              3                 
    0103.00      C                   PARM                    RPTDTE            6
    Code:
    RPG PLIST
    0115.00      C           *ENTRY    PLIST                                        
    0116.00      C                     PARM           $RPTCD  8                     
    0117.00      C                     PARM           $TITL1 30                     
    0118.00      C                     PARM           $TITL2 30                     
    0119.00      C                     PARM           BRID    3                     
    0120.00      C                     PARM           RPTDTE  6

  21. #20
    Driver of cars, eater of food jamief's Avatar
    Join Date
    Jan 2004
    Location
    Belvidere, IL - United States of America
    Age
    49
    Posts
    9,416
    Rep Power
    12604

    Re: Pointer not set for location referenced

    Im going to say its not the plist.....
    Im totally lost!

    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

  22. # 666
    Circuit advertisement
    Join Date
    Aug 1965
    Location
    Yakutsk, Russia
    Age
    21
    Posts
    1,000,000
     

Facebook Comments


Similar Threads

  1. hover the mouse pointer over a internet link it launches the program
    By itp in forum Whatever (not programming related)
    Replies: 4
    Last Post: February 2nd, 2007, 02:09 PM
  2. A problem about Referenced field
    By pl421 in forum RPG/RPGLE
    Replies: 2
    Last Post: December 27th, 2005, 12:18 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •