+ Reply to Thread
Results 1 to 4 of 4

Thread: Define a field as an Indicator....

  1. #1
    Guest.Visitor Guest

    Default Define a field as an Indicator....

    Just starting to use RPGIV.....and I like it. How do I define a field as an indicator so i don't have to use numbers any more. I need the syntax for the D Spec. Thanks

  2. #2
    Guest.Visitor Guest

    Default Define a field as an Indicator....

    Do a search on this forum for INDARA

  3. #3
    B.Myrick Guest

    Default Define a field as an Indicator....

    Eric, In your D-specs, code this: * Give indicators meaninful names * ------------------------------- d indptr s * inz(%addr(*in)) d indicators ds based(indptr) d exit 3 3 d process 5 5 d sfl_dsp 60 60 d sfl_ctl 61 61 d sfl_clr 62 62 d page_up 80 80 d page_down 81 81 d got_upc 97 97 d alarm 98 98 d over_flow 99 99 The numerick fields you see to the right are the indicator you are substituting for. In the C-specs you can check and/or evaluate the substitute field. c if exit = *on c leave c endif c dou exit = *on c . c . c enddo c eval exit = *on And so forth. Hope this helps, Bret

  4. #4
    Guest.Visitor Guest

    Default Define a field as an Indicator....

    Eric, the type of an indicator is N. If you specify a length, it has to be 1.
     D fileExists s n inz(*on) D custErrors s n dim(10) 
    The pointer that Jeff gave you for INDARA (and INDDS) is somewhat related to named indicators, but it's only one very specific use for them related to avoiding using the *IN indicators for display files. Barbara Morris

+ Reply to Thread

Similar Threads

  1. Use of /IF /DEFINE in SQLRPGLE
    By B.Morris in forum RPG
    Replies: 2
    Last Post: 08-15-2005, 06:02 AM
  2. Define the same file name twice
    By asheesh_ks@infosys.com in forum RPG
    Replies: 6
    Last Post: 05-30-2005, 06:55 PM
  3. Replies: 3
    Last Post: 05-23-2005, 09:13 AM
  4. Can i define a Password Field in a physical file?
    By Guest.Visitor in forum Programming
    Replies: 7
    Last Post: 01-26-2001, 09:53 AM
  5. How to define a workstation id under TCP
    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