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 |
What is the purpose of PUTOVR keyword?
How can you delete records form a file in rpg without using "Delete" OPCODE?
Hi guys. Im in AS/400(RPGLE,CLP) from last 1 year.Now i wan to upgrade my Knowledge in AS/400. Suggest me some new fields & courses which falls under AS/400. Waiting for your quick Response.
I know whole thing ab't Arrays related to declaration..can anyone tell me what exactly use of array or anyone faced a situation where he found use of array must....
What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?
what is the necessary command needed before OPNQRYF and why?
parameters cannot be passed in which one???
i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fields empno,empname,empaddr... here you give the empno it displays from that number to remaining empno's how? sub file screen: employee details pos to:empno then enter empno empname empaddr so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining... ...... please share this answel
what are the array operations?
Can you copy the records created by the OPNQRYF to other files and how?
What will happen if we r using seton lr after return or vice versa.
what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?