+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: ILE debugger and qualified field names

  1. #1
    GlenKerner Guest

    Default ILE debugger and qualified field names

    If I read the code right you are defining "field" to be like "field" maybe you are using the wrong field name in the "like" definition. Your example has both defined at the same field

  2. #2
    D.Handy Guest

    Default ILE debugger and qualified field names

    Doc, You didn't say what release you are on. Prior to V5R1, you have to use the syntax "EVAL field OF ds", ie eval field of frog. I've heard that V5R2 allows the more intuitive format eval frog.field Doug

  3. #3

    Default ILE debugger and qualified field names

    Doc - glad I'm not the only one experiencing this problem. I've scoured the 'V5R1 (and V5R2) RPG Programmers Guide - Part 3 Debugging and Exception Handling' multiple times trying to find the answer to this question - but always come away with nothing. As you probably already know, you can view the contents of a DS subfield by qualifying the EVAL (ex. EVAL Field1 OF DataStrucuture1), but how to qualify the EVAL on a standalone field? Grasping at straws, I've tried qualifying the field to the procedure (EVAL StandAloneField1 of Procedure1), MODULE, and PROGRAM, but no luck. I'm thinking this is something the IBM debugger team forgot about when they added support for qualified data structures. Or perhaps this is a subliminal message from IBM that we should start using their PC-based source debugger? I would sure like to know the answer to this if you get it. Drop me a line at john@thejoiners.net and let me know. JJ

  4. #4

    Default ILE debugger and qualified field names

    ALthough I don't have access to V5R2, you might try using the Debugger's built-in function to access the stand-alone field. EVAL %VAR(field) This works particularly well when the field name is also a Debugger command. For example, if you have a field named QUAL, simply press F11 on QUAL or entering "EVAL QUAL" will fail with a syntax error. But, typing in: EVAL %VAR(qual) Works just fine.

  5. #5
    Guest.Visitor Guest

    Default ILE debugger and qualified field names

    Well, after reading everyone's replies (thanks for taking the time to read and write, all), here's what I've got: Glen Kerner - 12:02pm JAN 21, 2003 pst (1.)
    If I read the code right you are defining "field" to be like "field" maybe you are using the wrong field name in the "like" definition. Your example has both defined at the same field
    I thought about that, but I don't think this is the problem-- the idea with the qualified field is to allow the same variable name to be used multiple times in different data structures to avoid naming conflicts. Bob Cozzi - 08:58am JAN 22, 2003 pst
    ALthough I don't have access to V5R2, you might try using the >Debugger's built-in function to access the stand-alone field.
    EVAL %VAR(field)
    Went that route too. Got the "Identifier is ambiguous" message once again. So, no dice. john34 - 07:43am JAN 22, 2003:
    Or perhaps this is a subliminal message from IBM that we should start using their PC-based source debugger?
    I sure hope not. Code/400 gives me the ache. Knowing full well that last statement will likely cause a holy war, I'm moving to Brazil or Trenton, NJ. Thanks again everyone. If I figure it out I'll let you know. -Doc

  6. #6
    Guest.Visitor Guest

    Default ILE debugger and qualified field names

    But not from me. In today's Tech Tips newsletter from iSeriesNetwork.com (formerly News/400): 2. QUALIFIED DATA STRUCTURES AND THE DEBUGGER Q: When debugging an RPG program, how can I display the values of a qualified data structure's subfields? I can display the entire data structure, but I can't find a way to display individual subfields. A: With V5R2, you can use the following: Eval DataStructureName.SubfieldName Prior to V5R2, you can use this: Eval SubfieldName of DataStructureName Thanks to Barbara Morris for sharing this information. So, for those of us in V5R1 and older, we have a bit more typing to do. Thanks all. -Doc

  7. #7

    Default ILE debugger and qualified field names

    But this still doesn't solve the problem with displaying standalone fields that the debugger deems "Ambiguous", because you have nothing to qualify them with. Very frustrating :-( JJ

  8. #8
    Guest.Visitor Guest

    Default ILE debugger and qualified field names

    Can you put the cursor on the stand alone "field" and get the content? And secondly, have you posed this to iSeries Network guru Gary Gunther? I'd be interested in the anwer he might have. Beyond him, I don't know of another person, except RPG Development, who might have the answer.

  9. #9

    Default ILE debugger and qualified field names

    john34 wrote: > > But this still doesn't solve the problem with displaying standalone fields that the debugger deems "Ambiguous", because you have nothing to qualify them with. > > Very frustrating :-( > JJ, the problem is fixed in V5R2 by changes made to both the RPG compiler and debugger. For V5R1, try defining the standalone field as a subfield of an unqualified data structure. You wouldn't have to change any of the code that uses the field, but the debugger allows you to say ===> EVAL X OF Y even if Y is not qualified.

  10. #10
    Guest.Visitor Guest

    Default ILE debugger and qualified field names

    Hey all I've got a mickey mouse example of code. Go look. I'll wait. The code compiles just fine. And when I pitch it into the debugger, I can examine the contents of the field result, and the subfields, frog.field and frog.field2. I can also examine the entire frog data structure. However, if I try to do an eval on the standalone field called "field", I get the error message, CPF7E56, Identifier is ambiguous, which does make sense-- but how do I qualify a stand-alone field so's I can look at it in the debugger? Thanks -Doc
    Code

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. Qualified file names in RPG
    By tdaly@sddsystems.com in forum RPG
    Replies: 6
    Last Post: 08-21-2007, 05:10 AM
  2. Replies: 0
    Last Post: 07-01-2003, 06:49 AM
  3. Softcoded field names
    By Guest.Visitor in forum Web Languages
    Replies: 7
    Last Post: 03-22-2002, 06:44 AM
  4. Softcoded field names
    By gary.shipp@s3t.co.uk in forum General
    Replies: 0
    Last Post: 03-13-2002, 01:53 AM
  5. Longer field names in OPM RPG/400
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 02-13-1998, 05:45 AM

Posting Permissions

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