1,150 pts.
 RPG indicators
Pls tell me how to pass values to a group of indicators at once in a single statement in RPG and RPGILE with example..thanks

Software/Hardware used:
ASKED: May 15, 2009  8:43 AM
UPDATED: June 18, 2011  12:01 PM

Answer Wiki:
In RPG or RPGLE but not RPGLE-free you could use the MOVEA (move array command) MOVEA '0000' *in80 would move *zeros to *in80, *in81, *in82, *in83 But I find it's better to do it in 4 discreate commands perhaps in a Subroutine. Maintenance programmers might not catch the meaning as quickly as the four statements. Phil ///////////////////////////////// Hi, In RPGLE-Free you can use it to turn off indicators 80 to 83. %SubArr(*IN : 80 : 4) = *Off Regards, Wilson
Last Wiki Answer Submitted:  May 15, 2009  2:10 pm  by  philpl1jb   44,630 pts.
All Answer Wiki Contributors:  philpl1jb   44,630 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

There is a good discussion and sample code on this topic at

http://archive.midrange.com/rpg400-l/200402/msg00198.html

The site requires membership which is free.

 5,570 pts.