What is the RPG cycle?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
How can read PF in reverse order (end to start) in CL pgm..
What is a record lock error?
explain sflclr, sflend, sfldlt, and sflcsrrrn?
how do u track msg in cl pgm???
difference between CHAIN and READE?
Need a sql query: retrieve all duplicate records in table?
How can a screen field that has changed since the last output operation be detected?
what is the equivalent keyword for CHAIN opcode ??
what will happen two jobs have same name are submitted
what is ment by "MDT"
1.Write code to read the records from a file and load an array of size 99? Make sure that you take care of all the error conditions?
i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?