How to handle reverse image indicator through RPG

70 pts.
Tags:
AS/400
RPG
How to handle Reverse Image Indicator through RPG program?

Answer Wiki

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

Discuss This Question: 5  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
    First, don't use an indicator at all for it. A program-to-system field is better. When you want the field to show 'Normal', set the field to have a x'20' value before writing the display record. When you want reverse image, set the value to x'21' (or to one of the other colored reverse-image values). Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    If the display file has a field with an indicator and keyword DSPATR(RI) and the program turns on the indicator before the WRITE or EXFMT then the field will be in reverse image.  If the indicator is off then the field will not be reverse.   But if the indicator in the display file is Nxx (N followed by the indicator number) then reverse the logic.  (*OFF for inverse *ON for normal).   Or as Tom suggested, you can use program-to-system fields.  
    51,355 pointsBadges:
    report
  • dwivediviv
    Thanks to all, but this not enough, I'm had trying this but not comes expected result. After that I had use UPDATE SFLFMT, then working. @Viv
    70 pointsBadges:
    report
  • TomLiotta
    Thanks to all, but this not enough...   And you didn't tell us enough. You didn't say you had a program with a problem. You just asked a straight technical question, so they were straight technical answers. You didn't show any DDS nor any program code.   The name "SFLFMT" implies a subfile record and you didn't tell us it was for a subfile. Using UPDATE can work, but we don't know if it's a good choice or not.   You should use a more descriptive title for questions than "AS/400" since there are now 90 other questions with same title. It makes it much harder to locate information when a title doesn't describe the question.   Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    So .. sfl .. you would need to have the indicator *on and update the subfile record and then write or EXFMT the control record.    Make sure you don't have it on for other sfl records you are updating.  
    51,355 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