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

Thread: Too many indicators

  1. #1
    S.Mildenberger Guest

    Default Too many indicators

    What a timely question! Just today Bob Cozzi has an article on this site about using the AID response field to avoid using indicators for function keys <http://www.mcpressonline.com/mc?1@17...ae.1@.6ae6d5c7>. As an temporary work around you could also use the *INKx indicator. Scott Mildenberger

  2. #2

    Default Too many indicators

    Scott, Thanks for the information. Unfortunately, the INFDS(DEVDS) is defined with the display file in the program I am using so I can't define the INFDS(WSDS) because the INFDS keyword can only be used once in the file keyword definition for the display file. Is there away around this issue? Thanks again, Erik Osberg

  3. #3
    Guest.Visitor Guest

    Default Too many indicators

    Then add a subfield at position 369 to data structure DEVDS.

  4. #4

    Default Too many indicators

    Hans, Thank you. If its not too much trouble could you provide me with an example of the code necessary? Thanks again. Erik Osberg

  5. #5
    S.Mildenberger Guest

    Default Too many indicators

    Did you look at the article link I posted. It covers the technique very well and has code examples. Scott Mildenberger

  6. #6

    Default Too many indicators

    Scott, Yes, I read the article. I understand the code examples. What I'm not sure about is how to code using the INFDS(WSDS) instead of the INFDS(DEVDS) and how to make a subfield for the DEVDS within the data structure for the WSDS. I've attached the existing DEVDS data structure. I'm assuming that if I change the INFDS to use the WSDS on the display file I have to incorporate the existing DEVDS data structure into the WSDS data structure somehow. The DEVDS is using position 369. I don't understand what Hans means by subfield. Is he referring to the fields within the data structure? That's where I'm getting confused. Thanks, Erik Osberg
    Code

  7. #7

    Default Too many indicators

    Scott, Forgive me for being so obtuse and overlooking the obvious. Thank you for your time and patience. Erik Osberg

  8. #8
    Guest.Visitor Guest

    Default Too many indicators

    Erik: You're already halfway there - your data structure DEVDS already has the appropriate subfield defined at position 369, called "DVAID". Go back to Bob's article, and follow the instructions starting at the section "Testing for a Function Key". But where Bob uses a field called "FKey", code "DVAID" instead. Cheers! Hans

  9. #9
    S.Mildenberger Guest

    Default Too many indicators

    Since DEVDS already has DVAID defined at 369 then just use that field. Compare it's value to the constants that define each function key. In the examples in the article WSDS was chosen as the workstation data structure but you program uses a name of DEVDS. The name of this data structure can be anything, that is why you need the INFDS keyword to point to the actual DS used in your program. Scott Mildenberger

  10. #10

    Default Too many indicators

    Hans, Thanks for the input. You and Scott have been very patient and I appreciate it. Thanks again, Erik Osberg

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Similar Threads

  1. subfiles and indicators
    By vin@planetchan.com in forum RPG
    Replies: 5
    Last Post: 08-27-2002, 03:23 PM
  2. what other indicators I can use
    By Guest.Visitor in forum Application Software
    Replies: 7
    Last Post: 10-04-2000, 04:26 PM
  3. Named Indicators
    By Guest.Visitor in forum Application Software
    Replies: 13
    Last Post: 08-23-2000, 03:17 PM
  4. Renaming indicators
    By Guest.Visitor in forum Programming
    Replies: 4
    Last Post: 04-03-2000, 08:07 AM
  5. RPG Error Indicators
    By Guest.Visitor in forum Programming
    Replies: 0
    Last Post: 01-01-1995, 02:00 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