Indicators in RPG

105 pts.
Tags:
AS400 RPGLE
RPG
RPG indicators
HI, I am a cobol400 developer and new to RPG and curious to know much about RPG... My question here is In what scenarios we use the below indicators 1.Overflow indicator 2.Record Identifying indicator 3.Control level indicator 4.Field level indicator 5.Resulting indicator Thanks in adv Anup

Software/Hardware used:
RPG

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: 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
  • philpl1jb
    Wow .. many of the indicators that you've enumerated were used in RPG II and/or RPG III.  If you're maintaining this code .. good luck to you. If you are writing code in RPG IV (RPGILE), either with or without the /Free format you will find the logic is very COBOL like and indicators are used sparingly and do not directly affect the processing or logic flow. .
    49,950 pointsBadges:
    report
  • TomLiotta
    Yeah, if you're writing new code, the only one that possibly should be used is #1, an overflow indicator; and even that can done away with if you want to code your logic like COBOL. Indicators are a kind of boolean switch; some of them can be switched on automatically by the RPG run-time code when the corresponding condition is detected, and your program can test them to decide logic paths to follow. You can associate "overflow" indicators to printer files, so your program is notified when a page overflows are detected. (You can count lines if you wish; it just isn't required.) All the indicator types you mentioned are set on by RPG run-time code. And the RPG Language Reference manual defines them. As for when you use them, it's up to you. I pretty much don't use them at all because they haven't been needed for the past 30 years or so. If you run across them in old programs, you can always look up their definitions. Otherwise, don't worry about them.   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