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 |
1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?
which MONMSG will give higher priority in CL program? I know MONMSG are of two types. Program Level Monmsg and Command Monmsg?
What is the purpose of FRCDTA keyword?
can anyone say,what is the use of operation extended H/N/P?
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?
I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5. Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.
How to index LF by relative record no (RRN)
what is importance of 'MAPFLD' IN OPNQRYF FILE ?
Interviewer asked me write down DDS for load all subfile .can anybody write dds
how do u find whether a record is locked or not??/
can we use cl programming to update or delete physical files
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