+ Reply to Thread
Results 1 to 2 of 2

Thread: Using EVAL

  1. #1
    Guest.Visitor Guest

    Default Using EVAL

    Carolyn, There could be a couple of ways to do this. (See Chapter 1.4.4.3 of the ILE RPG/400 Reference manual QBKAQE01 for further reference). Movea '000' *IN(01) I've seen the following done back in RPG/400 (this was probably valid even on the /38). Movea '000' *IN,01 Bill Carolyn Cilla wrote: Using ILE is there a way to set *on or *off a string of indicators? Example: EVAL *in01 = (*in02 = (*in03 = *on)). I have tried this and it doesn't seem to work. Is there a better way.

  2. #2
    Guest.Visitor Guest

    Default Using EVAL

    On Tuesday, June 23, 1998, 08:35 AM, Carolyn Cilla wrote: >BR> Using ILE is there a way to set *on or *off a string of indicators? Example: EVAL *in01 = (*in02 = (*in03 = *on)). I have tried this and it doesn't seem to work. Is there a better way. Carolyn, Yes, if the indicators are contiguous you can do it like this.
     D Indicators DS BASED(IndPtr) D iAllowF1 1 1A D iAllowF2 2 2A D iAllowF3 3 3A D D iOptionalKeys 1 3A D D IndPtr S * INZ(%ADDR(*IN)) C EVAL iOptionalKeys = *ALL'0' 
    And as a by-product you get named indicators without waiting for V4R2... hth, Derek

+ Reply to Thread

Similar Threads

  1. MOVEL or EVAL vs Z-ADD
    By T.Holt in forum Programming
    Replies: 5
    Last Post: 11-09-2001, 01:27 AM
  2. ROUNDING UP RESULT WITH EVAL
    By Guest.Visitor in forum Programming
    Replies: 3
    Last Post: 10-01-2001, 12:59 PM
  3. EVAL with (H)
    By bibarnes@yahoo.com in forum Application Software
    Replies: 2
    Last Post: 08-24-2000, 07:35 AM
  4. Using the Eval statement in RPG IV
    By Guest.Visitor in forum Application Software
    Replies: 2
    Last Post: 08-09-2000, 01:58 PM
  5. EVAL Limitations for Math
    By Guest.Visitor in forum Application Software
    Replies: 1
    Last Post: 02-16-2000, 11:59 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