What is the RPG cycle?

Answers were Sorted based on User's Feedback



What is the RPG cycle?..

Answer / bharat

It is RPG400 Logic means it is a compiler logic through
which system reads the primary file starting from begining
to end of file. No File operations like read/chain can be
used.System has the control of the program.

Is This Answer Correct ?    12 Yes 5 No

What is the RPG cycle?..

Answer / yogesh

Unless it has a NOMAIN the cycle runs -- here is the short
list of cycle stuff
it does some initialization
opens files
runs *INZSR
runs first statement
does some stuff when *inlr is on and end or return is
reached

If the F spec has a P then it automatically reads records
from that file
It can also automatically write stuff to a report and do
control breaks ...
So back a ways there were programs written with F-specs I-
specs and O-specs and the program did as the name implies -
(Report Program Generator).

Is This Answer Correct ?    6 Yes 0 No

What is the RPG cycle?..

Answer / svankipu

Simply put; RPG-Cycle is a default system cycle, which takes
care of all these below without having the programmer to
write the code

1)Opening a file(must be declared as PRIMARY)
2)Reading it & process it
3)Do any calculations/print reports automatically
4)Closes the files
5)Ends the program

this cycle is also called as RPG-Logic-cycle or
RPG-Life-Cycle or Default-Cycle or System-cycle.
Different people have different reservations about it's name.

Is This Answer Correct ?    4 Yes 2 No

Post New Answer

More RPG400 Interview Questions

How to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?

8 Answers  


there is any limit to display the members in rpg400?

3 Answers  


can anyone say,what is the use of operation extended H/N/P?

2 Answers  


How to declare the more than one file in cl/400.

13 Answers   IBM,


Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?

2 Answers   HSBC,






If record-format name in an externally-described file has already been defined as a file-name.how to solve this?

2 Answers   CTS,


Suppose my file has 10 fields and I want to make the 2nd field zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?

1 Answers  


I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic

2 Answers  


Can we found a record existance in a file w/o reading the file?

6 Answers   Traitsys Technologies,


is this a rpg channel?

0 Answers   IBM,


HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?

1 Answers   TCS,


How I can reread the physical file in CL program once the end of file reached in same CL program.

20 Answers   IBM,


Categories