Using RPGLE indicators

5 pts.
Tags:
RPG
RPG indicators
RPG Programs
RPGLE
How can use i use indicators for hide the fields and lables in the display file.
ASKED: February 18, 2009  12:32 PM
UPDATED: February 18, 2009  2:20 PM

Answer Wiki

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

Hi,

In the display file, using SDA, condition the fields with the indicators – you can do this by typing a * in front of the field and pressing enter, then select “display attributes”, you can condition the field completely by giving an indicator for “field conditioning”, or you can specify individual field attributes for example “non display”, by keying a Y and giving it an indicator.

In your RPG program simply set the indicator on or off just before you display your display file record.

Regards,

Martin Gilbert.
—————————————————–
Here are some code examples.

In this example the field FLD1 is visible when indicator 74 is *off –
the ‘N’ is not, as in Not Indicator 74.

A N74 FLD1 4 0B 7 46

Here it would be shown when Indicator 74 is on
A 74 FLD2 4 0B 7 46

FLD3 is always shown but it is protected if
inicators 65 or 32 or 33 or 34 are on.
A FLD3 9Y 0B 8 34EDTCDE(K)
A 65
AO 32
AO 33
AO 34 DSPATR(PR)

Things are different for subfile fields
Phil

Discuss This Question:  

 
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

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