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 we create binder member for updating service program and where we type this code on command line or in program ? strpgmexp pgmlvl(*current) export symbol (xyz0 endpgmexp. plz explain me this step by step .

2 Answers  


how can we can we the data decimal error?how can we open such file in support

1 Answers  


I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this

3 Answers   ISG,


How can we find out whether the job is interactive or Batch through RPG program? 2) How can we find out through CL program?

6 Answers   CSC,


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

0 Answers  






i would like to know under what circumstance the object will get locked on AS400.

5 Answers   IBM,


Explain mdt?

0 Answers  


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

13 Answers   IBM,


How to handle duplicate error handling in RPG?

0 Answers  


How to read alternative records in a pf by using rpg?

8 Answers   IBM,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


What is ment by record level identifier?

0 Answers  


Categories