AS400 Mid Range/rpg questions

Advertisement


Question
Hi I am a newbie in RPG AS400 programming, all any other programming in AS400 environment for that matter.

I am just wondering exactly what RPG stands for and what is the main purpose of it. Is it to create report?

What is an indicator that can be set on and off and what is the purpose on doing that?

And the last questions is kinda dump but I just got to make sure. When you compile an RPG source code and you set "Y" to overwrite the former compiled program. WHen the message saying the job is ended abnormally does it effect the existing program or it is harmeless?

thank you
I really appreciate your time  

Answer
RPG stands for Report Program Generator. Originally it was conceived of as a kind of query tool for generating reports.  Over the years it has become a powerful business programming language.

In each RPG program, a programmer has 99 indicators available to use, plus several other sets of special-purpose indicators.  The programmer decides to assign a meaning to an indicator - for instance, maybe indicator 21 is turned on when a date field is zero.  The programmer can then condition the printing of the date on "N21", so that zero dates do not print.  Another example might be when the programmer chains to a file.  The CHAIN operation requires a resulting indicator in the HIGH position - the indicator is set on if the requested record was NOT found, and turns off if the record WAS found.

When you choose to overwrite the previous program on a compile statement, the program is only overwritten if the new version successfully compiles.

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.