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 to update selected fields from pf without using update opcode. How to read all member in Rpg-3,without using any cl command?
there is any limit to display the members in rpg400?
can anyone say,what is the use of operation extended H/N/P?
How to declare the more than one file in cl/400.
Can anybody tell me in which scenario we have to use SQLRPG .(Embeded SQL)....?
If record-format name in an externally-described file has already been defined as a file-name.how to solve this?
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?
I want my simple Green screen should refersh every 1 min ,How can I do it..? Please share the logic
Can we found a record existance in a file w/o reading the file?
6 Answers Traitsys Technologies,
is this a rpg channel?
HOW TO DELETE THE RECORD FROM MASTER FILE WHICH IS LINK BY ANOTHER TRASATION FILE WITH REFERTIAL INTYGRITY?
How I can reread the physical file in CL program once the end of file reached in same CL program.