Indicator Off with RPG

65 pts.
Tags:
RPG Code
RPG indicators
RPGLE
How can we put all indicator off in single statement or in rpg code (It might be RPGIII Or IV)

Answer Wiki

Thanks. We'll let you know when a new response is added.

I think you just have to initialize the indicator array
something like this

C MOVEA ’0′ *IN,x – SINGLE INDICATOR

or

C MOVEA *zeros *IN – ALL INDICATORS

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    It might or might not be done depending on the definition of "indicator". There are three general groups that indicators might be put into. I'll call the first two groups general and specific. The general group contains the numbered indicators from 01 through 99. The specific group would contain LR, OF, L0, U1 and various others that have names that are related to their purposes. Those two groups exist in both RPG III and IV. The third group might be called the named indicators. These are only in RPG IV. They are defined as fields having a data type of N. Of those three types, the general indicators would be affected by the MOVEA instruction over the *IN fields . The specific indicators must be set on or off individually. (Some restrictions apply.) For the "named" group, it's possible to define them in in a DS and set them all on or off in a single operation. So, if "indicator" is defined to mean only the numbered indicators 01 through 99, then MOVEA can satisfy the question. But if all indicators are to be included, I don't know of any programmed operation that can set them all on or off, not in RPG III nor IV. Tom
    125,585 pointsBadges:
    report
  • TomLiotta
    ...by the MOVEA instruction over the *IN fields . That should have referred to the "*IN array". Even the 'specific' indicators can be referenced as *INxx "fields". Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following